subsequent actions were taken against Wei, who remained chancellor. Subsequently, when the imperial guards battled Li Changfu, it was said that one of the reasons why the imperial guard soldiers were inspired was that Wei left his family members in the imperial guard camp to show his faith in their ability to defeat Li Changfu. Subsequently, the imperial guards, commanded by Li Maozhen, was able to defeat Li Changfu, who was then killed by his own subordinate Xue Zhichou (). After Li Changfu's defeat, Emperor Xizong gave Wei the honorific title of Taibao (太保, one of the Three Excellencies) and also gave him the greater chancellor designation of Shizhong (侍中, head of the examination bureau (門下省, Menxia Sheng)). Yet later, after Emperor Xizong returned to Chang'an, he made Wei Zhongshu Ling (中書令, the head of the legislative bureau). During Emperor Zhaozong's reign Emperor Xizong died shortly after arriving in Chang'an in spring 888, and was succeeded by his younger brother Emperor Zhaozong. During Emperor Zhaozong's period of mourning, Wei Zhaodu served as regent. He was also created the Duke of Qi. Shortly after, Emperor Zhaozong received petitions from Gu Yanlang the military governor (Jiedushi) of Dongchuan Circuit (東川, headquartered in modern Mianyang, Sichuan) and the former imperial guard general Wang Jian, both of whom were attacking Tian Lingzi's brother Chen Jingxuan the military governor of Xichuan Circuit (西川, headquartered in modern Chengdu). As Emperor Zhaozong resented Tian (who was then no longer at the imperial government and evading punishment by putting himself under his brother's protection), he ordered an edict that Chen return to Chang'an to serve as an imperial guard general, while making Wei the military governor of Xichuan, still carrying the Zhongshu Ling title as an honorary title. When Chen subsequently refused to accept the order, Emperor Zhaozong stripped him of all titles and ordered Wei to oversee the operations against Chen, assisted by Gu, Wang, and Yang Shouliang the military governor of Shannan West Circuit (山南西道, headquartered in modern Hanzhong). Wei subsequently put Chengdu under siege. However, by 891, even though Chengdu was in desperate straits, with serious famine inside the city, Wei was still unable to capture the city. With the imperial government having just been crushed in a failed attempt to defeat Li Keyong, it was running out of resources in the campaign against Chen. In spring 891, therefore, Emperor Zhaozong ordered that Chen's titles