In 888, when
Zhang Quanyi the mayor of Henan Municipality (河南, i.e., the
Luoyang region) turned against his ally
Li Hanzhi the military governor of Heyang Circuit (河陽, headquartered in modern
Jiaozuo,
Henan) and captured Heyang Circuit's capital Heyang, Li Hanzhi sought aid from Li Keyong. Li Keyong had
Kang Junli command Li Cunxiao and four other officers (Xue Atan (), Shi Yan (), An Quanjun (), and An Xiuxiu () in aiding Li Hanzhi to put Heyang under siege. However, Li Keyong's major rival
Zhu Quanzhong the military governor of Xuanwu Circuit (宣武, headquartered in modern
Kaifeng,
Henan) sent his officers
Ding Hui,
Ge Congzhou, and Niu Cunjie () to aid Zhang. The Xuanwu forces defeated the Hedong forces, causing An Xiuxiu to desert the army in fear of being punished. When the Xuanwu forces then threatened to cut off the Hedong forces' path back to Hedong, Kang withdrew, leaving Zhang in control of Heyang Circuit. In 889, Li Keyong sent Li Hanzhi (who by that point was serving under Li Keyong) and Li Cunxiao to attack
Meng Fangli, who then controlled the eastern half of Zhaoyi Circuit () with his headquarters at Xing Prefecture (邢州, in modern
Xingtai,
Hebei). (Li Keyong's brother Li Kexiu () controlled the western half, with its headquarters at Lu Prefecture (潞州, in modern
Changzhi,
Shanxi).) Li Hanzhi and Li Cunxiao quickly captured the other two prefectures under Meng's control — Ci () and Ming (洺州, both in modern
Handan,
Hebei), and then put Xing under siege. Meng committed suicide. His brother Meng Qian () subsequently surrendered Xing to Li Keyong, allowing Li Keyong to control Zhaoyi in its entirety. In 890, then-reigning
Emperor Zhaozong declared a general campaign against Li Keyong, with the
chancellor Zhang Jun in command. With Li Kexiu having died recently, another brother of Li Keyong's, Li Kegong (), was in command at Zhaoyi, but was soon assassinated. His officer Feng Ba () took over Lu Prefecture and soon received aid in defending the city from Zhu's officer Ge Congzhou. Li Keyong sent Kang and Li Cunxiao to put Lu under siege. Meanwhile, the imperially-commissioned new military governor, Zhang's deputy Sun Kui (), was also heading to Lu to take command. Li Cunxiao, receiving this news, laid a trap for Sun near Lu and captured Sun, whom he delivered to Li Keyong and whom Li Keyong executed. Feng and Ge subsequently abandoned Lu, allowing Li Keyong to regain control of Zhaoyi. Li Keyong made Kang the acting military governor of Zhaoyi and Li Cunxiao the prefect of Fen Prefecture (汾州, in modern
Linfen,
Shanxi). (Li Cunxiao was displeased with this, as he believed that due to his accomplishment in capturing Sun, he should be given Zhaoyi. It was said that for several days he did not eat well and killed a number of people, and thereafter began to harbor thoughts of turning against Li Keyong.) == Rebellion against Li Keyong ==