Zhang Quanyi

[5] Zhang served in Huang's government as the minister of civil service affairs (吏部尚書, Libu Shangshu) and the director of transportation.

Li defeated him, however, forcing him to abandon Luoyang and flee north of the Yellow River back to the circuit capital Heyang.

However, as Zhang also resented Liu's hold on the circuit governance, he instead joined Li, and they jointly attacked Heyang but could not capture it.

[6] After Qin thereafter suffered a major defeat at the hands of Xuanwu's military governor Zhu Quanzhong, Sun withdrew from Heyang.

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.

[7] 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.

Zhang agreed, and he launched a surprise attack on Heyang at night, capturing it and taking Li Hanzhi's household captive.

Zhu sent his officers Ding Hui, Ge Congzhou, and Niu Cunjie (牛存節) to aid Zhang.

Zhu commissioned Ding the acting military governor of Heyang and recommissioned Zhang as the mayor of Henan.

Later in the year, Zhang received the honorary chancellor title of Tong Zhongshu Menxia Pingzhangshi (同中書門下平章事).

)[10] 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.

[10] 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.

(However, in 901, Emperor Zhaozong was restored in a countercoup headed by the imperial guard officers Sun Dezhao (孫德昭), Dong Yanbi (董彥弼), and Zhou Chenghui (周承誨).

He then moved Zhang Quanyi to be the military governor of Tianping Circuit (天平, headquartered in modern Tai'an, Shandong.

[1] In 904, by which point Zhu had assassinated Emperor Zhaozong and replaced him with his son Li Zuo the Prince of Hui (as Emperor Ai), Zhang Quanyi was again made the mayor of Henan; he was additionally also made the military governor of Zhongwu Circuit (忠武, headquartered in modern Weinan), apparently commanding it remotely, and the overall commander of the imperial guards.

[15] He made Zhang Quanyi the military governor of Heyang, in addition to being the mayor of Henan, again, and created him the Prince of Wei.

"[15] In 908, in addition to his other offices, Zhang was also made Taibao (太保) and the military governor of Zhenguo Circuit (鎮國, headquartered in modern Sanmenxia, Henan).

As part of the governmental reorganization that took place after Zhu Yougui took the throne, he disbanded the headquarters for financial matters at the eastern capital Kaifeng (which previously had been the headquarters of Xuanwu Circuit while Zhu Quanzhong governed it), which Emperor Taizu had created and had named Jianchang Palace (建昌宮).

[16] Zhang was also made the military governor of Xuanwu Circuit (whose headquarters had been moved to modern Shangqiu, Henan by that point).

At the recommendation of his close associates Zhao Yan and Zhang Hanjie (張漢傑), he made the general Duan Ning, whose military abilities was not respected by the army, the overall commander of the operations.

There are so many dissensions, and this may lead to great worries for the state.Despite Zhang's petition (and similar remarks made by the chancellor Jing Xiang), Zhu Zhen continued to leave Duan in command.

[19] The Later Liang military governors, including Zhang Zongshi, largely immediately submitted to the Later Tang emperor.

In winter 923, Zhang went to Kaifeng to pay homage to Emperor Zhuangzong, and he changed his name back to Quanyi.

[20] In 926, Emperor Zhuangzong, who had alienated his soldiers due to his failure to properly reward them for their contributions during his campaigns, was facing a mutiny by the Weibo Circuit (魏博, headquartered in modern Handan, Hebei) army.