Campaign against Dongchuan It was said that Wang Jian, after he took over Xichuan, ruled it diligently, listened to good advice, promoted capable people, put people in rightful positions, and was humble and frugal. However, he was also said to be suspicious, and that many subordinates with accomplishments suffered deaths due to his suspicions of them. Meanwhile, in 893, Gu entered into an alliance with
Li Maozhen the military governor of Fengxiang Circuit, and Li Maozhen sent troops to aid Gu. However, after Wang then defeated Fengxiang and Dongchuan troops at Li Prefecture, Gu sought peace against with Wang, claiming to be willing to break relations with Li Maozhen, and Wang agreed. Around the same time, Emperor Zhaozong bestowed on Wang the honorary chancellor title of
Tong Zhongshu Menxia Pingzhangzhi (). Meanwhile, Wang had repeatedly sought permission to execute Chen and Tian, and when imperial permission never came, Wang executed them anyway. In 897, Wang again launched a major attack on Dongchuan, commanded by Hua and another adoptive son, Wang Zongyou (), while sending Wang Zongjin () to attack Fengxiang to cut off any relief forces that might come from Fengxiang, and Wang Zongjin defeated Li Maozhen's adoptive son
Li Jihui. When Li Maozhen subsequently sent Li Jizhao () to try to relieve Dongchuan, Wang Jian's adoptive son Wang Zongbo () defeated and captured him. Around the same time, Wang Zongkan and Wang Zongruan () captured the
Three Gorges region, opening a trade path to the east down the
Yangtze River. In summer 897, Wang Jian took 50,000 men and joined the attack against Dongchuan himself. Li Maozhen reacted by submitting a petition against Wang Jian for failing to follow imperial orders to stop his attacks against Gu. Emperor Zhaozong, wanting to exploit the situation himself, issued an edict demoting Wang to be the prefect of Nan Prefecture (南州, in modern
Chongqing), while naming Li Maozhen the new military governor of Xichuan and Li Sizhou () the Prince of Qin as the new military governor of Fengxiang — hoping to take control of Fengxiang back into imperial hands. Both Wang and Li Maozhen refused the orders, and Li Maozhen reacted by blocking Li Sizhou's advance, forcing Li Sizhou to return to Zhenguo. Emperor Zhaozong soon thereafter restored Wang Jian's titles. He also created Wang the Prince of Langye. After Emperor Zhaozong returned to Chang'an, Cui and Zhu ordered that all eunuchs be massacred. However, Wang protected Yu Quanyan () the eunuch monitor for Xichuan and the prominent retired eunuch Yan Zunmei () from execution, instead executing two inmates that he claimed to be Yu and Yan. Later in 903, Wang Jian entered into a peace agreement with Zhu. Subsequently, Emperor Zhaozong created Wang the greater title of Prince of Shu. Soon thereafter, at the suggestion of his adoptive son Wang Zongben (), Wang Jian had Wang Zongben lead an army east on the Yangtze River, intending to capture Jingnan Circuit (荊南, headquartered in modern
Jingzhou,
Hubei). At that time, the military governor of Jingnan,
Cheng Rui, had just been killed in battle against Yang Xingmi's forces, and so Cheng's subordinate, Hou Ju (), surrendered
Kui Prefecture (夔州, in modern Chongqing) to Wang Zongben, allowing Wang Jian to take over Kui, Zhong (忠州, in modern Chongqing), Wan (萬州, in modern Chongqing), and En (恩州, in modern
Enshi Tujia and Miao Autonomous Prefecture,
Hubei) as well. However, believing that the
Qutang Gorge would serve as a good natural defense, Wang Jian decided to make no further attempt to capture Gui () and Xia () (both in modern
Yichang,
Hubei) as well. He made Wang Zongben the acting military governor of Wutai Circuit (武泰, headquartered in modern Chongqing) to govern over the region. Soon thereafter, a marriage alliance was also concluded between Wang Jian and Zhao. Alarmed by the situation, Zhu Quanzhong attacked Zhao, defeating him and annexing his territory, forcing Zhao to flee to Huainan, while Zhao's brother
Zhao Kuangming fled to Wang Jian. Around the same time, Wang sent another adoptive son, Wang Zonghe (), to attack
Feng Xingxi the military governor of Zhaoxin Circuit (昭信, headquartered in modern
Ankang,
Shaanxi). Feng fled, and his subordinate Quan Shilang () surrendered Zhaoxin's capital Jin Prefecture (). Wang adopted Quan as a son (renaming him Wang Zonglang () and made him the governor of Jin Prefecture and three other surrounding prefectures. Meanwhile, Emperor Zhaozong had been assassinated by Zhu's soldiers and replaced by his son
Emperor Ai. Zhu disavowed involvement, and subsequently sent messengers in Emperor Ai's name to various circuits to announce Emperor Zhaozong's death. When the messenger to Xichuan, Sima Qing (), arrived at Xichuan, Wang, under the suggestion of
Wei Zhuang, refused to meet with Sima; rather, he had his adoptive son Wang Zongwan (), then the military governor of Wuding, meet with Sima, and Wang Zongwan publicly stated, on Wang Jian's behalf, openly breaking with Zhu: In late 906, Wang also officially established a mobile imperial government, with himself as its head. He ceremonially danced toward the east (in a sign of respect to the emperor) and stated that he was exercising authority on the emperor's behalf, under the precedents of
Li Sheng and
Zheng Tian. In 907, Zhu Quanzhong (who had changed his name to Zhu Huang by that point) forced Emperor Ai to yield the throne to him, ending Tang and establishing a new
Later Liang. Most of the circuit governors in the former Tang emperor, whether actually under Zhu's authority or not, recognized Zhu as the new emperor, with the exceptions of Wang, Li Keyong (the Prince of
Jin), Li Maozhen (the Prince of
Qi), and Yang Xingmi's son and successor
Yang Wo (the Prince of
Hongnong). Wang and Yang initially issued declarations claiming that they would rendezvous with Li Keyong and Li Maozhen to reestablish Tang, but the other circuits who recognized Zhu did not respond. Wang thereafter decided that he should claim imperial title as well and tried to encourage Li Keyong to do so as well; Li Keyong refused, but that did not sway Wang, and neither did contrary advice from Feng Juan. Wang thereafter declared himself emperor of a new state of Shu (known to historians as
Former Shu to distinguish it from the later
Later Shu). == As Emperor of Shu ==