Former Shu's emperor Wang Jian commissioned Liu the military governor of Wuxin Circuit (武信, headquartered in modern Suining, Sichuan) [REF].
In 925, Former Shu came under a major attack by Later Tang, and the Former Shu general Wang Zongbi (Wang Yan's adoptive brother) seized control of the capital and forced Wang Yan to surrender to Later Tang.