mayor of Henan. It was said that because Zhang was appreciative of Zhu's saving his life, he never had any thoughts of turning against Zhu from this point on, and he plenteously supplied Zhu's army in Zhu's subsequent campaigns. Soon thereafter, Henan was turned into its own circuit (Youguo ()), and then-reigning Emperor Zhaozong (Emperor Xizong's brother and successor) commissioned Zhang its military governor. In 890, when the imperial government, at the request of Zhu's and that of Li Kuangwei the military governor of Lulong Circuit (盧龍, headquartered in modern Beijing, declared a general campaign against Li Keyong, Zhang led an army to participate in Zhu's operation, along with Ge and Zhu's son Zhu Youyu (), to wrest Zhaoyi Circuit (昭義, headquartered in modern Changzhi, Shanxi) from Li Keyong's control. The campaign, however, eventually ended in failure when Li Keyong's main forces crushed the imperial forces commanded by the chancellor Zhang Jun, and Li Keyong was able to retain Zhaoyi at that point. Later in the year, Zhang received the honorary chancellor title of Tong Zhongshu Menxia Pingzhangshi (). In 892, after Zhu, for reasons unclear to history, requested that then-military governor of Heyang, Zhao Keyu (), be demoted, Zhang was made the military governor of Heyang, in addition to Youguo. (However, at some point, Ding was made acting military governor of Heyang again, and in 899 was made full military governor.) In 896, by which time Emperor Zhaozong had fled to Zhenguo Circuit (鎮國, headquartered in modern Weinan, Shaanxi), which was then governed by Han Jian, due to attacks on Chang'an by Li Maozhen the military governor of Fengxiang Circuit (鳳翔, headquartered in modern Baoji, Shaanxi), Zhu Quanzhong and Zhang were submitted repeated joint petitions for the emperor to move the capital to Luoyang. In fear, Li Maozhen apologized to the emperor, repaired the palace and office buildings at Chang'an, and welcomed Emperor Zhaozong back to Chang'an. In 898, Emperor Zhaozong bestowed the greater honorary chancellor title of Shizhong on Zhang. In 900, when the eunuch Liu Jishu briefly overthrew Emperor Zhaozong in a coup and replaced him with his son Li Yu, Prince of De the Crown Prince, Zhang Jun, who had by that point retired to Changshui (), one of the counties of Henan, went to meet with Zhang Quanyi to encourage him and the other military governors to start a campaign to restore Emperor Zhaozong. There