张既
Historical photograph of Zhang Ji
Image creditsFu Bingchang · Public domainImage source

Late Eastern Han and Cao Wei statesmanmilitary strategistregional administratorand frontier pacifier

Zhang Ji (张既)

张既

Zhang Ji (张既, ?–223 CE), styled Derong, a native of Gaoling in Fengyi Commandery (modern Gaoling, Shaanxi), was an eminent statesman, military commander, and frontier governor of the late Eastern Han and Cao Wei dynasties. Hailing from an affluent non-gentry background, he began his career as a petty clerk in his native commandery before rising to Prefect of Xinfeng, where his administrative governance was ranked first across…

Era not stated

PROFILE

Zhang Ji (张既, ?–223 CE), styled Derong, a native of Gaoling in Fengyi Commandery (modern Gaoling, Shaanxi), was an eminent statesman, military commander, and frontier governor of the late Eastern Han and Cao Wei dynasties. Hailing from an affluent non-gentry background, he began his career as a petty clerk in his native commandery before rising to Prefect of Xinfeng, where his administrative governance was ranked first across the metropolitan Sanfu commanderies. In 202 CE, during the northern campaigns of Cao Cao, Zhang was dispatched by Sili Xiaowei Zhong Yao to persuade Western Liang warlords Ma Teng and Han Sui to ally with Cao Cao, successfully inciting Ma Chao to strike the rear of Yuan Shang's armies, decapitating Guo Yuan and subduing the Southern Xiongnu. He subsequently persuaded Ma Teng to yield his autonomous command and take up residence at the imperial court, before accompanying Cao Cao in crushing Ma Chao's rebellion at Huayin. Serving as Governor of Jingzhao and Regional Inspector of Yongzhou for over a decade, Zhang Ji rebuilt local agriculture, constructed water mills, and earned Cao Cao's profound esteem. During the strategic withdrawal from Hanzhong in 219 CE, Zhang orchestrated the large-scale relocation of over fifty thousand Di households from Wudu to Fufeng and Tianshui, denying Shu Han a northern staging ground. Following the founding of Cao Wei, when ferocious nomadic rebellions led by the Lushuihu erupted across the Hexi Corridor, Emperor Wen (Cao Pi) famously declared: "None but Zhang Ji can bring peace to Liangzhou." Invested with discretionary credentials, Zhang executed a daring flanking march, capturing Wuwei and crushing the Lushuihu in the Battle of Xianmei. He fortified frontier ramparts, induced over twenty thousand Western Qiang households to surrender, and restored commercial security across the Silk Road. Revered alongside Liu Fu, Liang Xi, and Jia Kui, Zhang Ji died in office in 223 CE and was posthumously honored as Marquis Su.

Courtesy Name
Derong (德容)
Posthumous Name
Marquis Su (肃侯)
Ancestral Home
Gaoling County, Fengyi Commandery
Date of Death
223 CE (4th Year of Huangchu)
Highest Office
Regional Inspector of Liangzhou (凉州刺史), Regional Inspector of Yongzhou (雍州刺史), Governor of Jingzhao (京兆尹), Imperial Secretarial Minister (尚书), Court Gentleman for Consultation (议郎), Bearer of Imperial Credentials (使持节)
Major Offices
Prefect of Xinfeng (新丰令), Military Advisor to Sili Xiaowei (参司隶校尉军事), Director of Personnel (尚书)
Identity
Late Eastern Han and Cao Wei statesman, military strategist, regional administrator, and frontier pacifier

LIFE TIMELINE

Model Governance at Xinfeng

Recommended as Flourishing Talent; governed Xinfeng County with distinction, ranked first in the Sanfu commanderies.

Enlisting Western Liang

Persuaded Ma Teng to ally with Cao Cao against Yuan Shang, culminating in the death of Guo Yuan.

Securing Ma Teng's Submission

Orchestrated diplomatic pressure and logistical preparation, compelling warlord Ma Teng to enter court residence.

Pacifying Guanzhong

Assisted Cao Cao in defeating Ma Chao at Huayin; appointed Governor of Jingzhao to rehabilitate the capital region.

Inspector of Yongzhou

Appointed Imperial Secretarial Minister and Regional Inspector of Yongzhou upon the creation of the Wei principality.

Relocating the Di Tribes

Resettled over fifty thousand Di households from Wudu into Fufeng and Tianshui to protect the western frontier.

Pacifying Liangzhou

Appointed Regional Inspector of Liangzhou with discretionary authority; routed the Lushuihu at the Battle of Xianmei.

Death and Posthumous Honor

Died in office in Liangzhou; praised by Cao Pi as a pillar of the state and posthumously titled Marquis Su.

Relationship graph

BIOGRAPHY

Life Course

Early Service and the Model Magistrate of Xinfeng

Zhang Ji was born in Gaoling of Fengyi Commandery into an affluent local household. He possessed a commanding physical presence and exceptional administrative talent. At the age of sixteen, he entered service as an office clerk in the Fengyi commandery administration, quickly distinguishing himself through rapid case adjudication and incorruptible diligence. He was nominated as Filial and Incorruptible (Xiaolian), yet perceiving the imminent collapse of the Han central court, he declined to proceed to Luoyang.

In 196 CE, when Cao Cao assumed the post of Minister of Works (Sikong) and relocated Emperor Xian to Xu, he summoned Zhang Ji to court, but regional turbulence delayed Zhang's arrival. Soon after, he was recommended as a Flourishing Talent (Maocai) and appointed Prefect of Xinfeng. At Xinfeng, Zhang Ji encouraged agriculture, reduced labor burdens, pacified local brigands, and restored municipal granaries, raising the devastated county into an oasis of stability. His governance was officially evaluated as the foremost in the metropolitan Sanfu region, establishing his reputation throughout the capital.

The Diplomatic Triumph Over Western Liang

In 202 CE, following the death of Yuan Shao, his son Yuan Shang confronted Cao Cao at Liyang. Seeking to open a second front against Cao Cao's western flank, Yuan Shang dispatched Guo Yuan as Prefect of Hedong and Gao Gan as Regional Inspector of Bingzhou, joined by the Southern Xiongnu Chanyu, to besiege Pingyang and forge an alliance with the Western Liang warlords Ma Teng and Han Sui. Sili Xiaowei Zhong Yao was sent to contain the invasion, but imperial forces were heavily outnumbered.

Recognizing that the defection of Ma Teng would result in the loss of Chang'an, Zhong Yao sent Zhang Ji to negotiate directly with the Western Liang generals. Meeting with Ma Teng, Zhang Ji analyzed the geopolitical realities with uncompromising clarity: Cao Cao upheld the legitimate sovereign and maintained clear legal rewards, whereas the Yuan brothers relied on non-Han auxiliaries in violation of imperial virtue. Backed by Fu Gan's counsel, Zhang convinced Ma Teng that sitting on the fence would invite inevitable destruction. Persuaded by Zhang's vision, Ma Teng sent his eldest son Ma Chao with over ten thousand elite cavalry to reinforce Zhong Yao. In the ensuing clash along the Fen River, Ma Chao's vanguard general Pang De decapitated Guo Yuan, Gao Gan fled, and the Xiongnu Chanyu surrendered, dissolving the northern coalition.

In 205 CE, Gao Gan rebelled again in Bingzhou, while local insurgent Zhang Sheng ravaged the Xiaoshan-Mianchi corridor with ten thousand bandits, supported by Wei Gu in Hedong and Zhang Yan in Hongnong. Cao Cao appointed Zhang Ji Court Gentleman for Consultation (Yilang) and military advisor to Zhong Yao. Zhang Ji once more rallied Ma Teng's western contingents, leading an expedition that destroyed Zhang Sheng, captured and executed Wei Gu and Zhang Yan, and drove Gao Gan into Jingzhou, where he was killed. For his strategic merit, Zhang was created Marquis of Wushi Pavilion.

Securing Guanzhong and Resettling the Frontier

In 208 CE, planning his southern campaign against Jingzhou, Cao Cao grew deeply anxious regarding Ma Teng's armed presence in the Guanzhong basin. Cao Cao dispatched Zhang Ji to urge Ma Teng to relinquish his command and take up residence at court. Although Ma Teng initially agreed, he wavered as the departure date neared. Anticipating insurrection, Zhang Ji secretly instructed counties throughout the region to amass provisions, while ordering local commandery administrators with two-thousand-bushel stipends to gather in the suburbs for a formal farewell ceremony. Trapped by this overwhelming display of administrative preparation and imperial scrutiny, Ma Teng had no choice but to depart for Ye.

In 211 CE, when Ma Chao and Han Sui launched their massive western coalition rebellion, Zhang Ji accompanied Cao Cao in the military campaign, participating in the decisive victory at Huayin that pacified the Guanzhong corridor. Following the campaign, Cao Cao appointed Zhang Ji Governor of Jingzhao. Zhang Ji restored civilian administration, constructed irrigation canals, resettled displaced refugees, and rebuilt market towns, winning the deep affection of the local populace.

In 213 CE, upon the formal creation of the Wei principality, Zhang Ji was appointed Imperial Secretarial Minister (Shangshu) alongside Mao Jie and Cui Yan, and was subsequently appointed Regional Inspector of Yongzhou. Commending his civil achievements, Cao Cao took Zhang's hand and praised him: "Returning to govern your native province with such distinction may truly be called walking in brocade robes by daylight!"

In 214 CE, Zhang Ji accompanied Protector of the Army Xiahou Yuan to suppress the rebel chieftain Song Jian, who had proclaimed himself King of the Early River in Fuhan for over thirty years. After eradicating Song Jian and securing Lintao and Didao, Cao Cao considered relocating the residents of Longxi, Tianshui, and Nan'an into northern China. Rumors sparked panic across the western commanderies. To soothe public terror, Zhang Ji granted tax exemptions and leaves of absence to local officers, directing them to repair their family estates and construct watermills, thereby proving to the populace that the state had no intention of forced relocation, which swiftly stabilized the region.

In 215 CE, Zhang Ji participated in the conquest of Hanzhong against Zhang Lu, marching through Sanguan to subdue the rebellious Di chieftain Dou Mao and harvesting local barley to sustain imperial logistical lines. Following Zhang Lu's surrender, Zhang advised Cao Cao to relocate tens of thousands of Hanzhong households to populate Chang'an and the Sanfu plain.

In 219 CE, after Liu Bei seized the strategic high ground of Hanzhong, Cao Cao prepared to withdraw his forces northward, but feared that Liu Bei would utilize the Di tribes of Wudu to threaten the Guanzhong approaches. Cao Cao consulted Zhang Ji, who recommended: "Encourage the Di to move northward to fertile lands to escape warfare, and confer lavish rewards on the first arrivals; the others will naturally follow." Cao Cao adopted the plan, sending Zhang to Wudu. Zhang successfully resettled over fifty thousand Di households into Fufeng and Tianshui, neutralizing Shu Han's western flanking operations.

Around this time, regional warlords Yan Jun of Wuwei, He Luan of Zhangye, Huang Hua of Jiuquan, and Qu Yan of Xiping each rebelled, seizing their respective commanderies and engaging in mutual warfare. When Yan Jun sent his family as hostages to Cao Cao to request military assistance, Zhang Ji advised non-intervention: "Yan Jun and his peers feign submission while nursing treasonous intent. If we rescue them now, they will turn against us once their power is consolidated. We should observe them like Bian Zhuangzi watching the two tigers fight, waiting for them to exhaust each other." Cao Cao praised the advice; within a year, He Luan slew Yan Jun, and local loyalist Wang Mi executed He Luan, leaving the Hexi corridor weakened and vulnerable to imperial re-annexation.

The Pacification of Liangzhou and the Battle of Xianmei

In 220 CE, following Cao Cao's death, Emperor Wen (Cao Pi) re-established Liangzhou as an independent administrative province and appointed Zou Qi as Regional Inspector. However, local rebel Zhang Jin captured the prefect of Zhangye and took up arms against Zou Qi, while Huang Hua and Qu Yan joined the uprising. Zhang Ji led a relief column to bolster Protector of the Qiang Su Ze, who successfully subdued the initial uprising. Zhang was ennobled as Marquis of Duxiang.

In 221 CE, fierce revolts erupted across Liangzhou as Lushuihu tribal confederates under Yijian Jici and Zhi Yuanduo amassed tens of thousands of horsemen, plunging the Hexi Corridor into total chaos. Confronted by regional collapse, Emperor Wen declared: "None but Zhang Ji can bring peace to Liangzhou." The emperor revoked Zou Qi's appointment and invested Zhang Ji with discretionary credentials as Regional Inspector of Liangzhou, granting him full authority to act without prior imperial consultation.

Reaching Jincheng on the banks of the Yellow River, Zhang prepared to cross. Subordinate commanders cautioned that the terrain was perilous and imperial troops heavily outnumbered. Zhang rebuked them: "The terrain is rugged, but it is not like the narrow pass of Jingxing; the non-Han tribes are a disordered mob without strategic vision. Wuwei is in mortal peril; we must strike with the speed of fire!" Discarding hesitation, he launched a deceptive feint toward Zhanyinkou where seven thousand Lushuihu cavalry lay in ambush, while secretly leading his main columns through Qici, appearing suddenly at the gates of Wuwei. Paralyzed by his rapid arrival, the rebels fled to Xianmei.

When general Fei Yao arrived with rear reinforcements, Zhang Ji insisted on pursuing the enemy to Xianmei, overruling officers who argued for delay due to troop fatigue. Zhang noted that the army lacked long-term provisions and had to forage from enemy stores, warning that allowing the rebels to disperse into deep mountain valleys would create an endemic crisis lasting generations. Approaching Xianmei, the Lushuihu cavalry attempted to use strong desert winds to set fire to the Wei encampment. Undeterred, Zhang Ji deployed three thousand elite troops in an ambush along the main pass during the night, ordering Adjutant Chenggong Ying to advance with a thousand cavalry and feign retreat. Falling into the trap, the rebel cavalry pursued recklessly and were ambushed on both flanks, suffering thousands of casualties. The Lushuihu confederacy was shattered.

Shortly thereafter, Su Heng of Jiuquan allied with the Qiang chieftain Lindai and Dingling nomads, fielding over ten thousand horsemen against imperial border posts. Zhang Ji coordinated with Xiahou Ru to crush the coalition, compelling Su Heng and Lindai to surrender unconditionally. Exploiting the momentum, Zhang built fortified ramparts at Zuocheng, erected an extensive network of watchtowers and beacon stations, and constructed border storehouses, overawing the Western Qiang and inducing more than twenty thousand households to lay down their arms. When rebel Qu Guang murdered the prefect of Xiping, Zhang Ji refused to mount a bloody siege, issuing an imperial proclamation offering amnesty to coerced followers and bounties for Qu Guang's head. Qu's subordinates promptly assassinated him and presented his head, restoring stability without shedding imperial blood.

Legacy and Posthumous Acclaim

Zhang Ji governed Yongzhou and Liangzhou for more than a decade, his administration characterized by impartial justice, agricultural revitalization, and strategic brilliance. Through his unceasing labors, he pacified barbarian frontiers, restored security to the Silk Road, and nurtured capable officials, including Pang Yan of Fufeng, Yang Fu of Tianshui, Hu Zun of Anding, Pang Yu of Jiuquan, and Zhang Gong of Dunhuang, all of whom rose to become ministers and generals of Cao Wei.

In 223 CE, Zhang Ji passed away in office in Liangzhou from chronic exhaustion. Emperor Wen deeply mourned his loss, issuing a decree praising his ability to nurture frontier populations and assimilate non-Han tribes, comparing his achievements to those of Xun Linfu and Feng Yi, and granting his youngest son Zhang Wenggui the title of Marquis Within the Passes. Upon Emperor Ming's enthronement, Zhang Ji was posthumously granted the title of Marquis Su. His eldest son, Zhang Ji, inherited the marquisate and rose to Grand Master for Splendid Happiness, while his granddaughter was crowned Empress of the third Wei emperor Cao Fang.

Major Achievements

Diplomatic Decoupling of Western Liang and Defeat of Guo Yuan

During the pivotal Guandu confrontation, Zhang Ji traveled personally into Western Liang to persuade warlord Ma Teng to sever ties with the Yuan clan and ally with Cao Cao. He coordinated regional auxiliaries to ambush and execute Guo Yuan at the Fen River, pacifying the Hedong rebellion led by Gao Gan and securing Cao Cao's western rear.

Relocating Ma Teng to the Capital and Stabilizing the Guanzhong Heartland

In the thirteenth year of Jian'an (208), utilizing meticulous logistical preparations and overwhelming political prestige, Zhang Ji successfully persuaded the formidable warlord Ma Teng to move his entire clan to the imperial capital as palace guards. This strategic stroke eliminated the danger of fragmentation in Guanzhong. Subsequently appointed Intendant of Jingzhao, Zhang welcomed displaced populations, restored settlements, and rebuilt the agricultural economy of the metropolitan Sanfu commanderies.

Relocation of Fifty Thousand Di Households

Anticipating military friction along the southwestern frontier, Zhang Ji orchestrated the strategic resettlement of over fifty thousand Di households from Wudu and Hanzhong into Fufeng and Tianxui. This massive peacetime transfer preserved vital labor resources, prevented hostile conscription by Shu Han, and stabilized the northern approaches to Qinling.

Decisive Victory at the Battle of Xianmei

In the first year of Huangchu (220), when the Lushui Hu rebelled and laid siege to Wuwei, Zhang Ji utilized psychological deception and diversionary marches. Seizing the strategic oasis of Xianmei, he severed rebel water access and routed the insurgent forces, capturing thousands of enemy combatants and thoroughly securing Hexi.

Frontier Engineering and the Fortification of Zuocheng

Facing persistent tribal incursions in Liangzhou, Zhang Ji engineered the reconstruction of ancient fortresses at Zuocheng and positioned defensible signal networks. By coupling fortification with compassionate administrative relief, he pacified and accommodated over twenty thousand households of Western Qiang tribesmen, ensuring lasting frontier peace.

Strategic Restraint in Hexi and Exploiting Factional Ruptures

When four rival warlords—Yan Jun, He Luan, Huang Hua, and Qu Yan—plunged Hexi into chaotic fratricidal warfare, Zhang Ji advised Cao Cao against premature intervention. Employing the ancient parable of Bian Zhuangzi striking tigers, he allowed rival factions to exhaust their strength through internecine combat, laying the groundwork for a swift, low-casualty pacification of the entire corridor.

Encouraging Agriculture and Elevating Western Talents

As regional governor across Yongzhou and Liangzhou, Zhang Ji rigorously promoted sericulture, reclaimed abandoned farmland, and cultivated local intellectual leaders. He elevated numerous virtuous scholars from Longyou to official postings, integrating frontier talent into the central administrative fabric.

Pacification of the Guanlong Frontier and Sustaining Forces from Enemy Stores

In repetitive operations against rebellious frontier tribes, Zhang Ji consistently seized tactical initiative. He pioneered the practice of harvesting rebel autumn crops to feed imperial expeditionary troops, simultaneously solving extended supply line constraints while stripping insurgent tribes of essential subsistence.

Hydraulic Restoration in Guanlong and Relief of Displaced Populations

While serving as Intendant of Jingzhao and Governor of Yongzhou, Zhang Ji directed extensive civil engineering works across Guanzhong. He dredged irrigation canals and established watermills, reduced burdensome corvée levies, and resettled displaced families, fundamentally restoring the agricultural prosperity of the Guanlong economic base.

Governance of the Western Regions Trade Routes and Imperial Projection

Following the pacification of the Hexi Corridor, Zhang Ji reorganized relay stations and security outposts along the Silk Road. His protections for foreign merchant caravans revived long-interrupted tributary and commercial relations with oasis kingdoms of the Western Regions, substantially projecting Cao Wei prestige across Central Asia.

Personal Relationships

  • Sovereign: Cao Cao (Emperor Wu of Wei, who recognized Zhang's administrative genius and entrusted him with the west).
  • Sovereign: Cao Pi (Emperor Wen of Wei, who granted Zhang discretionary power to pacify Liangzhou).
  • Colleague: Zhong Yao (Sili Xiaowei who dispatched Zhang to negotiate with Ma Teng).
  • Campaign Colleague: Xiahou Yuan (Senior general with whom Zhang subdued the rebel Song Jian).
  • Proteges: Yang Fu, Pang Yu, Hu Zun, Zhang Gong (Prominent frontier officials discovered and promoted by Zhang).
  • Son: Zhang Ji (Cao Wei minister, Duke of Xixiang, executed following the plot against Sima Shi).
  • Granddaughter: Empress Zhang (Consort of Emperor Cao Fang).

Historical Evaluation

  • Cao Cao: "Returning to govern your native province with such distinction may truly be called walking in brocade robes by daylight!"
  • Emperor Wen of Wei (Cao Pi): "None but Zhang Ji can bring peace to Liangzhou... The late Regional Inspector of Liangzhou Zhang Ji was able to accommodate populations and win over non-Han tribes; he may truly be called a fine minister of the state."
  • Chen Shou (Records of the Three Kingdoms): "Since the decline of the Han, regional inspectors governed territory beyond the capital with absolute command... Zhang Ji, Wen Hui, and Jia Kui grasped administrative mechanics thoroughly, combining firmness with benevolence to pacify thousands of leagues."
  • Dugu Ji: "The Wei and Jin dynasties possessed the strategems of Jia Xu, the loyalty of Jia Kui, the administrative genius of Zhang Ji, and the valor of Cheng Yu—they were eight exemplary gentlemen."
  • Hao Jing (Continuation of the Later Han History): "Suppressing villainy and quelling bandits required administrators of strict competence. Liu Fu, Liang Xi, Zhang Ji, and Jia Kui towered as bastions of their respective regions."

Related Entries

  • Cao Cao
  • Cao Pi
  • Zhong Yao
  • Ma Teng
  • Guo Yuan
  • Liangzhou
  • Battle of Xianmei
  • Lushuihu

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • Records of the Three Kingdoms, Volume 15, "Biographies of Liu, Sima, Liang, Zhang, Wen, and Jia"