the military arts so that they could defend themselves. Within a few years, the city recovered to appearing to be like the old days before the wars, and the fields were no longer fallow, but filled with mulberries and hemp. It was said that the larger counties were capable of producing 7,000 soldiers, and the smaller counties 2,000. It was said that Zhang governed with intelligence and that his subordinates could not deceive him. He rewarded the households that was particularly good at farming wheat or sericulture with clothes and tea. Under his rule, Henan became a rich city again. Meanwhile, Zhang initially had a cordial relationship with Li Hanzhi, whose Heyang Circuit his Henan Municipality belonged to, and they even cut their own arms to swear to be brothers. However, Li Hanzhi viewed Zhang's promotion of farming lightly. He also made a habit of making all kinds of material demands on Zhang, to the point that whenever he was not satisfied with what Zhang supplied his army, he would arrest Zhang's subordinates and cane them. Initially, Zhang put on the appearance of fearing Li Hanzhi and doing everything to appease him. In 888, when Li Hanzhi was on a campaign against the army of Huguo Circuit (護國, headquartered in modern Yuncheng, Shanxi), Huguo's military governor Wang Chongying sent secret emissaries to persuade Zhang to turn against Li Hanzhi. Zhang agreed, and he launched a surprise attack on Heyang at night, capturing it and taking Li Hanzhi's household captive. He then claimed the title of military governor of Heyang for himself. As vassal of Zhu Quanzhong Li Hanzhi fled to Ze Prefecture and sought aid from Li Keyong. Li Keyong sent his officer Kang Junli, commanding five other officers (Li Cunxiao, Xue Atan (), Shi Yan (), An Jinjun, and An Xiuxiu () to aid Li Hanzhi in trying to recapture Heyang. They put Heyang under siege, and the food supplies ran out. Zhang Quanyi thus sent his wife and children to Zhu Quanzhong as hostages to seek aid from him. Zhu sent his officers Ding Hui, Ge Congzhou, and Niu Cunjie () to aid Zhang. They defeated the Hedong forces, and then postured to cut off the Hedong forces' return path to Hedong through the Taihang Mountains. In fear, Kang took his army and withdrew. Zhu commissioned Ding the acting military governor of Heyang and recommissioned Zhang as the