Wang Yuanying (王元膺) (892 – August 13, 913), courtesy name Changmei (昌美), né Wang Zongyi (王宗懿), named Wang Yuantan (王元坦) from 910 to 912, was a crown prince of the Chinese Five Dynasties and Ten Kingdoms period Former Shu state, during most of the reign of his father, the founding emperor Wang Jian (Emperor Taizu). He was killed during an uprising he started against the powerful official Tang Daoxi and posthumously demoted to commoner rank. Background Wang Zongyi was born in 892, before the founding of the Former Shu state, as Wang Jian's second son. His mother was a Lady Zhang, who later would be given the imperial consort title of Guifei (貴妃) after Wang Jian founded Former Shu. As his older brother Wang Zongren (王宗仁), born of a Lady Ma, was disabled in his youth, Wang Zongyi was considered in effect Wang Jian's oldest son, and at some point, during Wang Jian's service as a Tang dynasty general was given the honorific title of deputy director of the archival bureau (秘書少監). When Wang Jian declared himself Emperor of Shu in 907, he created Wang Zongyi the Prince of Sui. As crown prince In 908, Wang Jian created Wang Zongyi crown prince. In 909, Wang Jian made him the titular commander of the imperial guards, and established headquarters for him, naming the headquarters Yonghe Hall (永和府). Wang Jian also selected a number of officials to serve on his staff. Wang Zongyi was said to be ugly in appearance, but talented in many things, particularly archery. However, he was also said to be arrogant and violent, paying no heed to the counsel of the officials Wang Jian put on his staff. He soon came into conflict with Wang Jian's close associate Tang Daoxi the director of palace communications, as he often made fun of Tang, leading to their mutually accusing each other of crimes. Wang Jian, not wanting them to be in constant conflict, made Tang the military governor (Jiedushi) of Shannan West Circuit (山南西道, headquartered in modern Hanzhong, Shaanxi) in 910 to separate them. Later in 910, Wang Jian renamed him Wang Yuantan. Subsequently, when Wang Jian made two tours away from the capital Chengdu to Li Prefecture (利州, in modern Guangyuan, Sichuan) in 911 in response to attacks by Former Shu's northern neighbor Qi, he had Wang Yuantan serve as regent at Chengdu. In 912, apparently in reaction to