Emperor Taizong was impressed with Zhang Li's literary abilities, and he made Zhang an imperial scholar. Around 937, Zhang made an attempt to flee back to Chinese territory, but was captured by the Khitan border guards. Emperor Taizong rebuked him and stated, "Why do you abandon me?" Zhang responded, "Your subject is Chinese. My food and clothing customs are different than yours. Living is worse than dying. I wish to be executed quickly." Instead of punishing Zhang, Emperor Taizong rebuked the interpreter Gao Yanying (), whom he had put in charge of making the lives of the ethnic
Han Chinese officials that he had captured comfortable, and whipped Gao. After this incident, Zhang continued to serve Emperor Taizong, and was said to be faithful and honest, speaking straight off his mind without hiding anything. Emperor Taizong thus respected him. Early in Emperor Taizong's
Huitong era (938–947), he was promoted to be chief imperial scholar (翰林學士承旨,
Hanlin Xueshi Chengzhi) and the minister of civil service affairs (吏部尚書,
Libu Shangshu). In 946, Emperor Taizong launched a major attack south, and, after defeating and forcing the surrender of the major Later Jin general
Du Wei (Shi Jingtang's brother-in-law, Shi Chonggui's uncle), approached the Later Jin capital
Kaifeng. Finding the situation hopeless, Shi Chonggui surrendered, ending Later Jin and allowing (for the time being) Liao to take over its territory. As the Liao army neared Kaifeng, Zhang, who accompanied Emperor Taizong on this campaign south, stated to Emperor Taizong: Emperor Taizong, however, did not listen to this advice. The Liao soldiers mistreated the Chinese of the
Central Plains badly, however, and soon the realm was overrun with rebellions. Finding the situation troubling, Emperor Taizong decided to head back to Liao proper, leaving his brother-in-law
Xiao Han (the brother of his deceased wife
Empress Xiao Wen)in charge of Kaifeng as the military governor of Xuanwu Circuit (). (According to Xiao later, Zhang opposed Xiao's commission, but was not listened to.) As Emperor Taizong was traversing the devastated Chinese territory on his way back, he stated, "What we have rendered China to be is the result of the sins of the Prince of Yan [(i.e., Zhao)]." He then turned toward Zhang and stated, "You also had a part in it." Emperor Taizong, however, would never reach Liao proper, as he fell ill on the journey and died near Heng Prefecture (恆州, in modern
Shijiazhuang,
Hebei). His nephew
Yelü Ruan the Prince of Yongkang then claimed imperial title (as Emperor Shizong) (after preemptively arresting Zhao, who had planned to declare himself emperor of China). As Emperor Shizong saw the likelihood that his grandmother (the mother of both Emperor Taizong and his own father
Yelü Bei) would oppose his succession, he took the main Liao army and continued back toward Liao proper, leaving an army at Heng (which Emperor Taizong had designated as the middle capital) as its garrison, along with many Han officials, including Zhang. When Xiao and Emperor Taizong's cousin Yelü Mada () subsequently withdrew from the Central Plains to Heng as well, they, still bearing grudges over Zhang's suggestion of commissioning only the Han Chinese to rule the Han Chinese, had their soldiers surround Zhang's mansion. At that time, Zhang was already ill, but he came out to meet Xiao and Yelü Mada. Xiao rebuked him, stating: Xiao locked Zhang's arms in chains, but Zhang responded harshly, "These are about the important matters of the state. I did in fact say these things. Kill me if you wish. What is the point of locking me?" Yelü Mada, however, believed that even officials as honored as Zhang could not be killed so frivolously, and therefore insisted on sparing Zhang. Xiao then released Zhang. Nevertheless, Zhang died in anger and distress that night. It was said that because Zhang often spoke righteously and had mercy on those who had talents, and he was willing to praise others for their good deeds and spend his wealth to help the poor, the Chinese scholars of the Central Plains, upon hearing of his death, mourned him. His family members burned his body and returned the bones to Fuyang for burial. == Notes and references ==