In fall 913, Wang Jian planned a vacation away from Chengdu for the
Qixi Festival (on August 11 that year). The night before (August 10), Wang Yuanying held a feast for the imperial princes and high-level officials, but three invitees—Wang Jian's adoptive son Wang Zonghan (王宗翰) the Prince of Ji, and the officials Pan Qiao (潘峭, who succeeded Tang Daoxi as the director of palace communications) and
Mao Wenxi (the chief imperial scholar)—did not attend. Wang Yuanying, in anger, accused Pan and Mao in absentia of alienating his brothers from him. Meanwhile, Wang Yuanying's trusted officers Xu Yao (徐瑤) and Chang Qian (常謙) were gazing at Tang. Tang, in fear, fled from the feast. The morning next day (August 11, the date of the Qixi Festival), Wang Yuanying went to see his father Wang Jian and accused Pan and Mao of alienating him from his brothers. Wang Jian, believing the accusations, ordered Pan and Mao demoted, making Pan's brother
Pan Kang the new director of palace communications. However, after Wang Yuanying then left the palace, Tang arrived, and Tang made the counteraccusation that Wang Yuanying was planning to rebel, and, as part of his planning, was planning to put the princes and the officials under arrest. Wang Jian, with his suspicions aroused, cancelled the Qixi vacation plans. Further, he agreed to Tang's request to mobilize the regular troops to defend the palace (rather than the imperial guards, who were formally under Wang Yuanying's command). Upon hearing that the regular troops had been mobilized, Wang Yuanying mobilized his own Tianwu Army (天武軍). He arrested Pan Qiao and Mao and almost battered them to death, in addition to arresting Pan Jiao (潘嶠) the mayor of Chengdu. The next day (August 12), Xu, Chang, and Yan Lin (嚴璘), under Wang Yuanying's direction, attacked Tang's forces. Tang initially resisted but tried to retreat when an arrow hit him. The crown prince's troops then routed his, killing him, and many of the troops under Tang were killed. In response, at Pan Kang's suggestion, Wang Jian summoned his adoptive sons Wang Zongkan (王宗侃), Wang Zonghe (王宗賀), and Wang Zonglu (王宗魯), ordering them to launch an attack against Wang Yuanying's troops. They did so, along with another adoptive son, Wang Zong'an (王宗黯). They killed Xu in battle. Chang and Wang Yuanying fled to Longyao Pond (龍躍池) and hid on a boat there. The next morning (August 13), Wang Yuanying came out of hiding and requested food from the boat owner. This was reported to Wang Jian, and he dispatched Wang Zonghan to try to comfort Wang Yuanying. However, before Wang Zonghan arrived at Longyao Pond, Wang Yuanying was killed by his own guard. Wang Jian initially mourned Wang Yuanying bitterly, but later decided that without declaring Wang Yuanying a renegade, he could not comfort the people, and therefore demoted Wang Yuanying to commoner rank, although, apparently at Wang Jian's direction, Wang Zonghan had Wang Yuanying's killer executed. Many of Wang Yuanying's associates were killed or exiled. == Notes and references ==