Wang Zongbi
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. Wang Yan had Li Hao draft the surrender petition for him. The Later Tang commanding general Li Jiji the Prince of Wei (the son of the Later Tang emperor Li Cunxu) accepted Wang Yan's surrender, ending Former Shu.