Born into a distinguished scholar-official family in Yifeng County, Dingzhou; studied classical philosophy and statutory law.

Zhang Xingcheng (张行成)
张行成
Zhang Xingcheng (张行成, 587 – October 10, 653), courtesy name Deli (德立), posthumously honored as Ding (定), was a native of Yifeng County, Dingzhou (modern Anguo City, Baoding, Hebei Province). He was an illustrious statesman, legal authority, and chancellor of the early Tang dynasty during the Zhenguan and Yonghui eras, serving as a trusted elder tutor in the Eastern Palace and a deathbed counselor (guming dachen) to…
PROFILE
Zhang Xingcheng (张行成, 587 – October 10, 653), courtesy name Deli (德立), posthumously honored as Ding (定), was a native of Yifeng County, Dingzhou (modern Anguo City, Baoding, Hebei Province). He was an illustrious statesman, legal authority, and chancellor of the early Tang dynasty during the Zhenguan and Yonghui eras, serving as a trusted elder tutor in the Eastern Palace and a deathbed counselor (guming dachen) to Emperor Taizong. He rose to Right Vice Director of the Department of State Affairs (Shangshu You Puye) and was ennobled as the Duke of Beiping County. Originating from the prestigious Zhang lineage of Zhongshan, Zhang demonstrated intellectual depth from his youth, mastering the Confucian classics alongside Han and Wei legal traditions. Entering public service through regional recommendations in the late Sui dynasty, he was appointed supernumerary secretary. During the late Sui civil wars, he served Wang Shichong's Zheng regime as Minister of Revenue. In 621 (the 4th year of the Wude era), following Li Shimin's pacification of Luoyang, Zhang surrendered to the Tang and was recommended by Pei Ju. Serving with integrity as a magistrate at Gushu, Chencang, and Fuping, he advanced to Palace Censor and Supervising Secretary. Under Emperor Taizong, Zhang served as Left Vice Director of State Affairs and Vice Minister of the Court of Judicial Review, reviewing capital cases with procedural equity and mercy, leading Taizong to praise him as a model magistrate whose administrative flow was as smooth as floating clouds. In 643 (the 17th year of the Zhenguan era), following the deposition of Crown Prince Li Chengqian, Prince of Jin Li Zhi was designated heir apparent, and Taizong selected Zhang to serve concurrently as Junior Supervisor of the Household of the Heir Apparent. During Taizong's military campaigns against Goguryeo, Zhang assisted Crown Prince Li Zhi in supervising state affairs at Dingzhou, winning the young prince's profound trust. In 649, on his deathbed at Cuiwei Palace, Emperor Taizong entrusted the young sovereign to Zhang alongside Zhangsun Wuji and Chu Suiliang. Under Emperor Gaozong, Zhang served as Director of the Chancellery and Minister of Justice, elevated in 651 to Right Vice Director of the Department of State Affairs. In the chancellery, Zhang championed modest taxation, helped supervise the compilation of the monumental Tang Code with Commentary (Tanglü Shuyi), and established the institutional foundations of the flourishing "Rule of Yonghui." He passed away on October 10, 653, at sixty-seven, and was posthumously granted Senior Official of Unequalled Honor, honored as Ding, and granted burial in Emperor Taizong's Zhao Mausoleum.
- Courtesy Name
- Deli (德立)
- Posthumous Name
- Ding (定)
- Noble Title
- Duke of Beiping County (北平县公)
- Dynasty
- Tang Dynasty
- Ancestral Home
- Yifeng County, Dingzhou (present-day Anguo City, Baoding, Hebei Province)
- Date of Birth
- 587 (7th year of the Kaihuang era of Sui)
- Date of Death
- October 10, 653 (13th day of the 9th lunar month, 4th year of the Yonghui era of Emperor Gaozong)
- Age at Death
- 67
- Highest Official Position
- Right Vice Director of the Department of State Affairs (Shangshu You Puye), Director of the Chancellery (Shizhong), Minister of Justice (Posthumously granted Senior Official of Unequalled Honor and Area Commander of Bingzhou)
- Identity / Status
- Eminent Tang dynasty chancellor, deathbed counselor to Emperor Taizong, Right Vice Director of State Affairs, Duke of Beiping County
LIFE TIMELINE
Passed imperial examinations to become supernumerary secretary; served as Minister of Revenue under Wang Shichong in Luoyang.
Surrendered to Prince of Qin Li Shimin upon the fall of Luoyang; appointed district magistrate at Gushu and Chencang.
Elevated to Palace Censor and Supervising Secretary, remitting outspoken memorials against extravagant imperial travels.
Promoted to Vice Minister of Justice and Court of Judicial Review; overturned hundreds of wrongful capital convictions.
Appointed Junior Supervisor of the Household for Crown Prince Li Zhi; directed logistics during Taizong's Goguryeo campaign.
Received Emperor Taizong's deathbed charge alongside Zhangsun Wuji; appointed Director of the Chancellery (Shizhong).
Elevated to Minister of Justice and created Duke of Beiping County, reforming imperial examination quotas.
Elevated to Right Vice Director of State Affairs; supervised the compilation of the Tang Code with Commentary.
Died in office on October 10 at sixty-seven; posthumously granted Senior Official of Unequalled Honor, buried in Zhao Mausoleum.
Relationship graph
BIOGRAPHY
Biographical Narrative
Ancestral Roots and Civil Turmoil in the Late Sui
Zhang Xingcheng was born into a distinguished scholar-official lineage in Yifeng County, Dingzhou. His family maintained generations of classical scholarship. Endowed with a grave, contemplative nature, Zhang read widely across history, specializing in the jurisprudence and penal codes of the Han, Wei, and Jin dynasties, blending classical Confucian ethics with meticulous administrative competence.
In the late Daye era of the Sui dynasty, widespread rebellion erupted across northern China. Passing civil examinations through provincial recommendation, Zhang was appointed supernumerary secretary in the imperial Department of State Affairs. In 617, as the Wagang Army battled Sui imperial divisions around Luoyang, General Wang Shichong seized executive authority over the eastern capital. Wang Shichong established the regional Zheng regime, appointing Zhang Minister of Revenue to manage eastern fiscal reserves, food supplies, and transport logistics.
In 621 (the 4th year of the Wude era), Prince of Qin Li Shimin defeated Dou Jiande and captured Luoyang. While many of Wang Shichong's former ministers faced harsh penalties, Minister of Revenue Pei Ju interceded for Zhang, praising his incorruptible integrity and administrative skill. Emperor Gaozu granted Zhang an imperial pardon, appointing him magistrate of Gushu and subsequently transferring him to Chencang and Fuping. Serving as a local magistrate, Zhang investigated administrative corruption and cleared backlogged lawsuits within weeks, earning the affection of local residents.
Upright Censor and Judicial Mercy under Zhenguan
During the early Zhenguan era, Emperor Taizong sought upright scholars to replenish the central bureaucracy. On the strength of his exceptional local evaluations, Zhang was summoned to Chang'an as Palace Censor and promoted to Supervising Secretary in the Chancellery. Supervising Secretaries were tasked with reviewing imperial rescripts and ministerial memorials. Zhang discharged his duties with scrupulous integrity, challenging administrative measures that placed undue burdens upon common households.
When Emperor Taizong traveled to Luoyang and the western frontiers, local magistrates sought imperial favor by levying excessive corvée labor to renovate imperial traveling lodges. Zhang submitted candid remonstrances before the court: "The empire has barely emerged from the devastating collapse of the Sui. Restoring the people's agricultural livelihoods must remain our supreme priority. The peasant households of Guanzhong have only just returned to their plows; they must not be exhausted by lavish imperial progresses." Moved by his sincerity, Emperor Taizong halted the travels and awarded Zhang one hundred catties of gold to honor his unyielding moral courage.
In 635 (the 9th year of the Zhenguan era), Zhang was appointed Vice Minister of Justice, subsequently serving as Vice Minister of the Court of Judicial Review and Left Vice Director of the Department of State Affairs. In the supreme judiciary, Zhang championed the principle of "benevolent governance through judicial restraint." While many medieval jurists sought swift promotions through harsh convictions, Zhang reviewed every capital dossier with painstaking care, commuting death and exile sentences whenever procedural doubts remained. He overturned hundreds of wrongful convictions, saving countless lives. Emperor Taizong publicly commended him: "Zhang Xingcheng administers law with profound equity and dignified composure, resolving complex judicial appeals as smoothly as cooking a small fish—a true exemplar among ancient magistrates and chancellors!"
Tutoring the Heir Apparent and the Deathbed Charge
In 643 (the 17th year of the Zhenguan era), Crown Prince Li Chengqian was deposed for treason. To preserve dynasty stability, Emperor Taizong designated his benevolent ninth son, Prince of Jin Li Zhi, as Crown Prince. Mindful of the young prince's gentle nature, Taizong selected seasoned scholars to guide him, appointing Zhang Junior Supervisor of the Household of the Heir Apparent.
Zhang devoted himself to tutoring the prince in classical ethics and administrative arts, winning Li Zhi's lasting affection. In 645, when Emperor Taizong personally led an expeditionary army against Goguryeo, Crown Prince Li Zhi was ordered to supervise state affairs at Dingzhou. Zhang, alongside Right Vice Director Fang Xuanling and Chancellor Xiao Yu, was assigned to guide the prince. During the year-long regency in Dingzhou, Zhang coordinated frontline military transports and maintained civilian stability across northern commanderies, earning the prince's deep political trust.
In May 649, Emperor Taizong fell critically ill at Cuiwei Palace on Mount Zhongnan. In his final hours, Taizong summoned Zhangsun Wuji, Chu Suiliang, and Zhang to his bedside. Grasping Zhang's hand, Taizong said: "You are pure, diligent, and loyal. You have guided the Crown Prince for years with exemplary devotion. I now entrust the young sovereign to your care; guide him as you have guided me, and let no misfortune befall the realm!" Following Taizong's death, Zhang accompanied the prince to Chang'an, securing the peaceful accession of Emperor Gaozong.
Right Vice Director of State Affairs and the Yonghui Era
Upon his accession, Emperor Gaozong elevated Zhang to Senior Official of Silver and Blue with the Imperial Seal, appointing him Director of the Chancellery (Shizhong) and Minister of Justice, while creating him Duke of Beiping County. In 651 (the 2nd year of the Yonghui era), following Yu Zhining's retirement for mourning, Gaozong appointed Zhang Right Vice Director of the Department of State Affairs (Shangshu You Puye), heading the executive branch.
In the premiership, Zhang addressed the popular exhaustion resulting from Taizong's late military expeditions by advocating fiscal frugality, reduced taxation, and agricultural rehabilitation. Partnering with Grand Commandant Zhangsun Wuji and Chancellor Chu Suiliang, he refined civil service examinations and promoted worthy scholars.
Crucially, Emperor Gaozong commissioned Zhangsun Wuji and Zhang to codify the definitive legal statutes of the Tang empire. Leveraging his profound command of classical jurisprudence, Zhang supervised the compilation of the thirty-volume Tang Code with Commentary (Tanglü Shuyi), institutionalizing the core Chinese legal principle that "moral virtue and ritual propriety form the foundation of governance, while penal statutes serve as their practical instrument." This codified legal framework marked the apex of the Chinese legal family and provided the institutional bedrock for the "Rule of Yonghui."
In the autumn of 653 (the 4th year of the Yonghui era), worn down by decades of administrative labor, Zhang fell critically ill. Emperor Gaozong dispatched court physicians with imperial remedies. On October 10, 653, Zhang passed away at his official residence in Chang'an at sixty-seven. Emperor Gaozong suspended court sessions for three days, posthumously conferring upon him the titles Senior Official of Unequalled Honor and Area Commander of Bingzhou, awarding the posthumous name Ding, and granting burial in Emperor Taizong's Zhao Mausoleum. His descendants continued as distinguished statesmen, establishing the Zhongshan Zhang lineage as a premier ministerial family in the Tang dynasty.
Major Accomplishments
Establishing Equitable Jurisprudence under Zhenguan
Between 635 and 643, Zhang served as Vice Minister of Justice, Vice Minister of the Court of Judicial Review, and Left Vice Director of State Affairs, reviewing capital cases nationwide. He overturned hundreds of wrongful convictions through procedural rigor and judicial mercy, earning personal commendation from Emperor Taizong.
Guiding the Crown Prince during Frontier Campaigns
During Emperor Taizong's 645 expedition against Goguryeo, Zhang managed central logistics and civil administration at Dingzhou while assisting Crown Prince Li Zhi, ensuring steady supply lines to the front and domestic stability in the rear.
Fulfilling the Imperial Deathbed Commission
In 649, summoned to Cuiwei Palace by Emperor Taizong to receive the imperial deathbed commission alongside Zhangsun Wuji and Chu Suiliang, Zhang successfully secured the transition of power and the peaceful accession of Emperor Gaozong.
Directing the Codification of the Tang Code with Commentary
As Director of the Chancellery and Right Vice Director of State Affairs, Zhang played a central role in compiling the Tang Code with Commentary (Tanglü Shuyi), the crowning achievement of imperial Chinese jurisprudence, which underpinned the flourishing Rule of Yonghui.
Historical Relationships
- Early Patron: Pei Ju, senior Sui and Tang statesman who recommended Zhang to Emperor Gaozu following the capture of Luoyang.
- Fellow Deathbed Counselors: Zhangsun Wuji (Grand Commandant and imperial uncle) and Chu Suiliang (Chancellor), who jointly guided Emperor Gaozong.
- Imperial Sovereigns: Emperor Taizong (who praised his legal mastery) and Emperor Gaozong (who revered him as his personal tutor and chief chancellor).
- Sons: Zhang Xuanshao and Zhang Xuansu, who held distinguished appointments in the imperial bureaucracy.
Historical Evaluations
- Emperor Taizong: "Zhang Xingcheng administers law with profound equity and dignified composure, resolving complex judicial appeals as smoothly as cooking a small fish—a true exemplar among ancient magistrates and chancellors!"
- Emperor Gaozong: "Right Vice Director Zhang Xingcheng is an elder counselor from the Eastern Palace, a deathbed minister of the late emperor, upright, incorruptible, and a pillar of the dynasty."
- Liu Xu et al., Old Book of Tang: "Zhang Xingcheng was renowned for his penetrating judgment. Throughout his service in the central ministries, he governed without the slightest flaw. Elevated to the chancellorship, his conduct conformed strictly to the laws, displaying the true stature of a great minister."
- Song Qi et al., New Book of Tang: "Zhang Xingcheng was pure in nature, devoted to scholarship, and deeply versed in legal codes. Administering justice with clear leniency, he was never cruel. Directing the affairs of state, he acted in strict conformity with ritual canons; awarded the posthumous name Ding, his honors matched his deeds."
- Sima Guang, Comprehensive Mirror for Aid in Government: "Zhang Xingcheng was prudent and respectful, serving two reigns; in all great state decisions, he offered benevolent counsel that nurtured the Rule of Yonghui."
Related Entries
- Emperor Gaozong of Tang
- Emperor Taizong of Tang
- Rule of Yonghui
- Tang Code with Commentary
- Zhangsun Wuji
- Right Vice Director of State Affairs
- Zhao Mausoleum
FIGURES ASSOCIATED WITH THIS DYNASTY
Bibliography
- Liu Xu et al., Old Book of Tang, Volume 80, "Biographies, Vol. 30: Biography of Zhang Xingcheng", Zhonghua Book Company
- Song Qi et al., New Book of Tang, Volume 105, "Biographies, Vol. 30: Biography of Zhang Xingcheng", Zhonghua Book Company
- Sima Guang, Comprehensive Mirror for Aid in Government, Volumes 197–199, Zhonghua Book Company
- Wang Pu, Institutional History of Tang, Volumes 4–6, Zhonghua Book Company