About Zhang Yanshang
Lived 727 – 787 (aged 59–60). Zhang Yanshang was a Chinese military personnel.
Zhang Yanshang (; 727 – September 7, 787 ), né Zhang Baofu , was a Chinese politician serving as a chancellor during the reign of Emperor Dezong.
Background Zhang Baofu was born in 727, during the reign of Emperor Xuanzong. His family traced its ancestry to the Jin Dynasty official Zhang Hua. His father Zhang Jiazhen had previously been a chancellor under Emperor Xuanzong and continued to serve in prominent positions after his removal in 723. Zhang Jiazhen died in 729, however, when Zhang Baofu was only two years old. Near the end of Emperor Xuanzong's Kaiyuan era (713-741), the mayor of Jingzhao Municipality (京兆, i.e., the region of the Tang capital Chang'an), Han Chaozong , who had previously been recommended by Zhang Jiazhen, stated to Emperor Xuanzong:
Emperor Xuanzong, hearing this, was saddened, and he summoned Zhang Baofu and made him an army officer. Emperor Xuanzong also gave him a new name — Yanshang, meaning "extended favor." It was said that Zhang Yanshang was well-versed in the Confucian classics and histories and he also became known for administrative talent. The official Miao Jinqing, who later served as a chancellor as well, was impressed with his talent and gave him a daughter in marriage.
During Emperor Suzong's reign During the Anshi Rebellion, Emperor Xuanzong's son and successor Emperor Suzong was, for some time, at Fengxiang (鳳翔, in modern Baoji, Shaanxi), and while there, he made Zhang Yanshang an imperial censor, initially with the rank Jiancha Yushi , then as Dianzhong Shiyushi . Thereafter, the general Wang Sili , who then carried the title of military governor (Jiedushi) of Guanzhong Circuit, requested to have Zhang serve as his assistant, and when Wang was later made the military governor of Hedong Circuit (河東, headquartered in modern Taiyuan, Shanxi), Zhang served as the deputy mayor of Taiyuan Municipality under Wang. He was later recalled to Chang'an to serve as a low-level official at the ministry of justice (刑部, Xingbu). Subsequently, Zhang was recalled to Chang'an to serve as chief imperial censor (御史大夫, Yushi Daifu). While he was serving in that role, there was an occasion when the junior official Li Shaoliang submitted a number of accusations against Yuan, and Yuan's associates, in turn, accused Li of false accusations and had him arrested and detained at the office of the imperial censors. Zhang disapproved of the action and did not want to be involved, and he was sent to Huainan Circuit (淮南, headquartered in modern Yangzhou, Jiangsu) to serve as its military governor as well as the prefect of its capital Yang Prefecture . At that time, there was a drought in the circuit, and a large number of the people were trying to depart for other regions. Zhang's subordinates detained them, but Zhang, pointing out that the people should be given the opportunity to survive the drought, allowed them to leave and, in their absence, kept their houses maintained and exempted them from taxes. As a result, many returned thereafter. He later left governmental service when his mother died, to observe a period of mourning for her. After the mourning period was over, he was recalled to serve as the military governor of Jingnan Circuit (荊南, headquartered in modern Jingzhou, Hubei), as well as the mayor of its capital, Jiangling Municipality. (At the end of the campaign, however, there was a serious dispute between Zhang and Li Sheng — Li Sheng had, after the campaign, taken the military prostitute Gao Hong with him. Zhang, angry with this, sent messengers to chase after Li Sheng's army to demand Gao back, thus causing a grudge between Li Sheng and Zhang.) In 783, there was a mutiny by his subordinate Zhang Ku , who had been posted in the mountains in the west of Chengdu in defense against Tufan. Zhang Ku attacked Chengdu, forcing Zhang Yanshang to flee to Han Prefecture (漢州, in modern Deyang, Sichuan). It was only after another subordinate of Zhang Yanshang's, Chigan Sui , attacked and killed Zhang Ku, that Zhang Yanshang was able to return to Chengdu. It was said that Zhang followed the law and ruled the circuit leniently, allowing the people of the circuit to recover from the wars that had ravaged the circuit ever since Anshi Rebellion. In 785, when the chancellor Liu Congyi was seriously ill (and Liu would die later in the year), Emperor Dezong thus recalled Zhang to Chang'an, intending to make him an actual chancellor. Li Sheng, still displeased with Zhang, submitted a petition accusing Zhang of a number of crimes, and Emperor Dezong, not willing to go against Li's wishes, for the time being only made Zhang Zuo Pushe , one of the heads of the executive bureau (尚書省, Shangshu Sheng). at the meeting site, Shang laid a trap for Hun and launched a sudden attack, killing and capturing many of Hun's attendants, but Hun escaped. When the news reached Chang'an, Emperor Dezong was so panicked that he considered fleeing Chang'an, but remained due to Li Sheng's advice. As a result of this debacle, Zhang claimed an illness and retired, while Emperor Dezong recalled Ma to the capital and stripped him of his command. Subsequently, the reduction in officer ranks was reversed under the advice of another chancellor, Li Mi.
Meanwhile, Zhang's rivalry with another official — Li Shuming the military governor of Dongchuan Circuit (東川, headquartered in modern Mianyang, Sichuan) — which formed when they governed neighboring circuits, led Zhang to carry out some additional actions intended to bring down Li Shuming. At that time, Li Shuming's son Li Shēng (李昇, note different tone and character than the great general) was repeatedly seen visiting Emperor Dezong's aunt Princess Gao, whose daughter was the wife and crown princess of Emperor Dezong's son and crown prince Li Song. He informed this to Emperor Dezong, intimating that Li Shēng was having an affair with Princess Gao. When Emperor Dezong asked Li Mi to investigate this, however, Li Mi correctly guessed that it was Zhang who informed Emperor Dezong of this and suggested no investigation, pointing out that Zhang's accusations also appeared to be intended to endanger Li Song. Emperor Dezong agreed, and thereafter moved Li Shēng to the position of head of Li Song's household, away from Princess Gao.
Zhang died in winter 787 and was given posthumous honors. He was also given the posthumous name of Chengsu (成肅, meaning "successful and solemn"). His son Zhang Hongjing later served as a chancellor during the reign of Emperor Dezong's grandson Emperor Xianzong.
Ouyang Xiu, the lead editor of the New Book of Tang, commented thus about Zhang:
Notes and references
Old Book of Tang, vol. 129 . New Book of Tang, vol. 127 . Zizhi Tongjian, vols. 224, 226, 229, 230, 232.
Don’t just read it —
keep it.
Full-length biographies made to live with: read them, listen on the way to work, watch them tonight.
- E-book
- Audio
- Video
Instant download · yours to keep · every purchase keeps this site free
Important facts
People in Zhang Yanshang's life
Named in this biography and alive at the same time
Contemporaries
People whose lives overlapped Zhang Yanshang's
Frequently asked questions
Who was Zhang Yanshang?
Chinese chancellor
When was Zhang Yanshang born?
Zhang Yanshang was born in 727.
When did Zhang Yanshang die?
Zhang Yanshang died in 787 in Chang'an County.
What was Zhang Yanshang's occupation?
Zhang Yanshang was a military personnel.
What nationality was Zhang Yanshang?
Zhang Yanshang was Chinese.
Sources & further reading
Cite this page
APA: Biography.guide. (2026). Zhang Yanshang. https://biography.guide/zhang-yanshang/
MLA: "Zhang Yanshang." Biography.guide, https://biography.guide/zhang-yanshang/.
Chicago: "Zhang Yanshang." Biography.guide. https://biography.guide/zhang-yanshang/.
Data last updated: 2026-09-20 · Spot an error? Report a correction.
Page generated 2026-09-27 05:17 UTC