Initial expansion of power In 888, Emperor Xizong died. His younger brother
Li Jie the Prince of Shou, supported by Yang Fugong, became emperor (as Emperor Zhaozong). Emperor Zhaozong bestowed a number of honors on military governors, including the greater honorary chancellor title of
Shizhong () on Li Maozhen. In spring 892, Li Maozhen reacted by submitting a joint petition with his older brother Li Maozhuang () the military governor of Tianxiong Circuit (天雄, headquartered in modern
Tianshui,
Gansu) and allies
Wang Xingyu (who had been made the military governor of Jingnan),
Han Jian the military governor of Zhenguo Circuit (鎮國, headquartered in modern
Weinan,
Shaanxi), and Wang Xingyu's brother Wang Xingyue () the military governor of Kuangguo Circuit (匡國, headquartered in modern Weinan as well), requesting that a campaign be launched against the Yangs and that Li Maozhen be made the commander of the operations. Emperor Zhaozong, concerned that if Li Maozhen defeated the Yangs, he would be even more difficult to control, initially ordered that the sides negotiate. However, Li Maozhen and Wang Xingyu, ignoring the edict, launched the campaign, and Li Maozhen wrote disrespectful letters to the chancellor
Du Rangneng and the leading eunuch Ximen Junsui (). Emperor Zhaozong, concerned that Li Maozhen may slaughter the people of Shannan West without imperial sanction, made Li Maozhen the commander of the operations against the Yangs. Subsequently, when Emperor Zhaozong killed the imperial guard officer Li Shunjie () — who had previously been an adoptive son of Yang Fugong's but who had revealed much of Yang Fugong's secrets to Emperor Zhaozong — and Li Shunjie's ally Jia Desheng (), Jia's troops fled to Fengxiang and joined Li Maozhen, greatly strengthening Li Maozhen's army. In fall 892, Li Maozhen captured Feng Prefecture (鳳州, in modern Baoji), forcing Yang Fugong's follower Man Cun () the military governor of Ganyi Circuit (感義, headquartered at Feng Prefecture) to flee to Xingyuan. Li Maozhen then also captured Xing () and Yang () Prefectures (both in modern Hanzhong), and had his relatives take over as prefects of those prefectures. Soon thereafter, he captured Xingyuan, forcing Yang Fugong, Yang Shouliang, Yang Shouxin, Yang Shouzhen, Yang Shouzhong, and Man to flee to Lang Prefecture (閬州, in modern
Nanchong,
Sichuan). He had his adoptive son Li Jimi () take over as the acting mayor of Xingyuan. Meanwhile, seeing an opening to further expand his influence when
Wang Jian the military governor of Xichuan Circuit (西川, headquartered in modern
Chengdu,
Sichuan) and
Gu Yanhui the acting military governor of Dongchuan Circuit (東川, headquartered in modern Mianyang), who were previously allies, had a break (over Wang's apparent attempt to take over Dongchuan), Li Maozhen also recommended to Emperor Zhaozong that Gu be made full military governor; Emperor Zhaozong followed that recommendation. Thereafter, he sent Li Jimi to try to aid Gu, but after Xichuan troops defeated the joint Dongchuan/Fengxiang troops at Li Prefecture (利州, in modern
Guangyuan,
Sichuan), Gu sought peace with Wang under the term that he agreed to cut off relations with Li Maozhen; Wang agreed. Later in the year, however, another flareup would occur in the relationship between the imperial government and the Li Maozhen/Wang Xingyu/Han alliance. After the recent death of
Wang Chongying (Wang Chongrong's brother and successor) the military governor of Huguo Circuit, the Huguo soldiers had supported Wang Chongying's nephew
Wang Ke (the son of his brother Wang Chongjian (), but who had been adopted by Wang Chongrong) as Wang Chongying's successor, but Wang Chongying's son
Wang Gong the military governor of Baoyi Circuit (保義, headquartered in modern
Sanmenxia,
Henan), who had coveted Huguo, persuaded Wang Xingyu, Li Maozhen, and Han to submit a petition recommending that Wang Gong be given Huguo and Wang Ke be given Baoyi. Emperor Zhaozong, citing Li Keyong's support for Wang Ke's succession (as Wang Ke was his son-in-law), refused. Thereafter, Li Maozhen, Wang Xingyu, and Han marched on the capital and put, against Emperor Zhaozong's orders, Li Xi and Wei to death. They then considered deposing Emperor Zhaozong and replacing him with his brother Li Bao () the Prince of Ji. However, at this point, they heard that Li Keyong had mobilized his army and was preparing to march against them, so they, after leaving 2,000 soldiers each at Chang'an to watch over the emperor, returned to their circuits to prepare to defend against Li Keyong. Later in the year, Emperor Zhaozong made another attempt to take back Fengxiang. Li Maozhen had submitted a petition accusing Wang Jian of attacking Dongchuan against imperial orders. Emperor Zhaozong reacted by issuing an edict demoting Wang to be the prefect of Nan Prefecture (南州, in modern
Chongqing), making Li Maozhen the military governor of Xichuan to replace Wang, and making Li Sizhou the military governor of Fengxiang to replace Li Maozhen. Both Wang and Li Maozhen refused to follow the edict, and Li Maozhen further refused to let Li Sizhou to reach Fengxiang by putting Li Sizhou under siege at Fengtian. Only after Han wrote Li Maozhen did Li Maozhen lift the siege on Fengtian to allow Li Sizhou to return to Hua. (Li Sizhou — and 10 other princes — however, did not escape death. Soon after Li Sizhou's return to Hua, Li Jiepi returned from Hedong, thus exposing the fact that Li Keyong was in no shape to aid the emperor. With that possibility gone, Han slaughtered the imperial princes, including Li Sizhou, Li Jiepi, and Emperor Zhaozong's uncle
Li Zi the Prince of Tong, and then claimed to Emperor Zhaozong that they were plotting treason.) Emperor Zhaozong did make Zhang Lian () the military governor of Zhangyi Circuit (彰義, headquartered in modern
Pingliang,
Gansu) the commander of the operations against Li Maozhen, but it appeared that Zhang was either unable or unwilling to attack Li Maozhen, for there was no further record of what Zhang did in the campaign. Emperor Zhaozong also stripped Li Maozhen of his titles and his imperially-bestowed name of Li Maozhen, referring to him as Song Wentong again. (After Emperor Zhaozong's declaration of the campaign against Li Maozhen, Li Jitang abandoned Kuangguo and fled back to Fengxiang; Han thereafter took over Kuangguo as well.) Zhu subsequently approached Fengxiang again. In summer 902, Li Maozhen tried to take back the initiative by gathering his own troops and exiting the city, to engage Zhu at Guo County (虢縣, in modern Baoji), but was defeated at the loss of thousands of his men. Zhu, after having his officer Kong Qing () capture Feng Prefecture, arrived at Fengxiang. He built five camps and had Fengxiang surrounded. Li Maozhen's cousin Li Maoxun (), who was then the military governor of Baoda Circuit (保大, headquartered in modern
Yan'an,
Shaanxi) tried to aid Fengxiang, but was defeated by Kong and another Xuanwu officer, Kang Huaizhen (), and forced to withdraw. Meanwhile, Li Jimi, under attack by Xichuan forces, was forced to surrender to Wang Jian, and Shannan West and Wuding (which surrendered soon thereafter) became Wang's territory. == During reign of Emperor Ai of Tang ==