Shu Han · Administrator of Yuexi; General Who Suppresses Bandits
Zhang Ni
courtesy name 伯岐 · c. 195–254

Zhang Ni was fervent and heroic, clear in discernment and decisive in judgment, unrestrained and caring little for ceremony. Hearing that Jiang Wei was hard pressed, he led several hundred horsemen and cut his way into the encircling ranks to rescue his lord.
Life
In the novel: 16 chapters · In the Records: 2 volumes
Life195–254
228 CE (Taihe 2)
231 CE (Taihe 5)
Appearances
By chapter (18)
Outlined chapters have spoken lines; tap one to read them.
Novel
- 87
- 88
- 90
- 91
- 93
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 109
- 111
Records
- 33
- 43
- Shu Han
- Hatched: dated by chapter
- Life event
List all 3 stops
On the boards
Compare with someone →Where this person ranks on each board.
Who they were
Character profile
- Character
- Zhang Ni was fervent and heroic, clear in discernment and decisive in judgment, unrestrained and caring little for ceremony. Hearing that Jiang Wei was hard pressed, he led several hundred horsemen and cut his way into the encircling ranks to rescue his lord.
- Life
- Zhang Ni was a native of Nanchong in Ba Commandery. At his capping (twenty) he was a county Merit Officer, and when the First Ruler pacified Shu, he braved bared blades to carry the county magistrate's wife to safety and so escaped harm. He assisted Ma Zhong in campaigning north against the rebel Qiang of Wenshan and pacifying the barbarians of four commanderies to the south. In the seventeenth year of Yanxi, Zhang Ni set out with Jiang Wei to Longxi, and died in battle clashing with the Wei general Xu Zhi.
- Anecdotes
- Zhang Ni once wrote a letter to Zhuge Zhan admonishing Zhuge Ke. He served as Grand Administrator of Yuesui and pacified Yuesui Commandery. Zhang Ni was General Who Sweeps Away Bandits of Shu Han.
Historical Record
Zhang Ni, courtesy name Boqi, was from Nanchongguo County in Ba Commandery. In his early twenties, he served as a county assistant. When the Former Lord was pacifying Shu, mountain bandits attacked the county, and the county magistrate abandoned his family and fled. Braving the blades, Zhang Ni carried the magistrate’s wife to safety, thereby making a name for himself. In the fifth year of Jianxing, as a commandant, he led troops against mountain bandits such as Zhang Mu in the areas around Guanghan and Mianzhu. He first pretended to make peace and arranged a banquet, then, while they were deep in their cups, killed Zhang Mu and more than fifty others. Within ten days, he had eliminated the remaining bandits. He was later appointed a Gate General and served under Ma Zhong, taking part in campaigns against the rebellious Qiang of Wenshan in the north and in the pacification of the southern tribes. He repeatedly distinguished himself through planning and military achievements.
In the fourteenth year of Yanxi, Zhang Ni became Administrator of Yuexi. The commandery had long been beyond the court’s control, and its administrators had been stationed only in Anding County. After taking office, he used kindness and trustworthiness to win over the tribes. He also captured alive Wei Lang, leader of the Zhuoma tribe, who had refused to obey orders, then released him and had him win over his followers. Zhang Ni recommended Wei Lang for the title of Marquis of the District, and more than three thousand households were able to settle down and serve the state. Later, he dealt with the Suqi rebellion, executed Dong Feng, and had those who had turned against their own side conspire to kill Poqu, who had fled into the western frontier. He also recruited and executed Li Qiucheng, who had once murdered Administrator Gong Lu. To restore the commandery seat and secure salt and iron, he repaired the city walls and collected salt and iron resources from Dingzuo, Taideng, Bishui, and other places. He pacified local magnates by combining deterrence with conciliation. During his tenure, he also established ties with Lang Lu, leader of the Maoniu tribes, and reopened the old Maoniu road, closed for more than a century, restoring the route to Chengdu.
Zhang Ni served in Yuexi for fifteen years, bringing stability to the region. After repeatedly requesting a transfer, he was summoned to Chengdu, where the tribal people saw him off with reluctance. He was appointed General Who Pacifies Bandits. Zhang Ni was generous and resolute in character. Though criticized for being unruly and lacking in decorum, he was also praised for sound judgment, decisiveness, loyalty, and uprightness. In the seventeenth year of Yanxi, he accompanied Jiang Wei on an expedition into Longxi and took part in the Battle of Didao. After Li Jian surrendered, Shu forces clashed with the Wei general Xu Zhi. Zhang Ni fell in battle, inflicting more casualties on the enemy than his own side suffered. On hearing the news, the people of Yuexi, both Han and tribal, wept in grief and built a temple to honor him.
In the Novel
Romance of the Three Kingdoms portrays Zhang Ni as a brave general in Zhuge Liang’s Southern Campaign and Northern Expeditions, often tasked with coordinating ambushes, pincer attacks, and ruses to lure the enemy. Together with Zhang Yi, he lay in wait and captured Dongtuna and A Huinan; later, as Meng Huo’s pursuers closed in, he cut off their way back. These episodes from the Southern Campaign highlight his quick thinking and ability to carry out orders, but the specific battles and captures are fictional embellishments and should not be confused with the historical accounts.
The novel also depicts him operating alongside Ma Zhong. When Lady Zhurong went into battle, Zhang Ni was struck in the left arm by a flying knife during their fight, fell from his horse, and was captured. Later, after Zhuge Liang set a trap, he and Ma Zhong led troops in a pincer attack on the Wei army’s grain camp. During Zhuge Liang’s Northern Expeditions, Zhang Ni is also named as General Who Pacifies the Rong and Marquis Within the Passes, and takes part in an attack on Wei forces outside their camp. The Records of the Three Kingdoms recounts his long administration of Yuexi and his expedition into Longxi with Jiang Wei, where he died in battle at Didao; it does not record these ambushes, captures, or novelistic battle scenes from the Southern Campaign.
Key Relationships
The historical accounts clearly show Zhang Ni serving under Ma Zhong: he was appointed a Gate General under Ma Zhong and helped campaign against rebellious Qiang in the north and quell rebellions in the south. When Ma Zhong recovered Yuexi, he and Zhang Ni also worked together to restore the commandery. Zhang Ni’s governance relied on more than military campaigns. The sources also record that he won people over through kindness, granted titles to tribal leaders, restored transport routes and production, and brought their followers into the fold.
His relationship with Jiang Wei centers on the military campaign in Longxi late in his life: in the seventeenth year of Yanxi, he accompanied Jiang Wei on campaign and ultimately died fighting the Wei general Xu Zhi at Didao. Zhang Ni also once sent a letter warning Fei Yi, citing the assassinations of Cen Peng and Lai Xi as cautionary examples and urging him to treat newly submitted people with care. He also used Zhuge Zhan as an intermediary to remonstrate with Zhuge Ke, advocating that the army be withdrawn, farming resumed, and benevolence extended. These admonitions show that he was not merely a general but also attentive to political affairs and the risks involved in selecting and trusting people.
Defining Scenes
Zhang Ni’s administration of Yuexi best illustrates how he combined firmness with leniency. When dealing with the defiant Wei Lang, he first captured him alive, then released him and had him win over the remaining followers. When Lang Cen refused to come before him, Zhang Ni sent strong men to seize and kill him, using force to cow the tribes; he then held a banquet and reaffirmed his goodwill. The historical account uses these episodes to show that he could wield authority while restoring local order and securing salt and iron resources.
Another vivid image is Zhang Ni, though ill, still asking to join the campaign. When Li Jian requested to surrender and Jiang Wei was about to set out for Longxi, Zhang Ni volunteered to serve. Before departing, he told the Later Lord that if Liang Province were pacified, he hoped to serve as a frontier guardian; if victory proved impossible, he would repay his benefactor with his life. He ultimately fell at Didao. His loyalty and resolve are reflected in the record that the people of Yuexi built a temple for him and made offerings in every season.
Quotes
3 lines in the books · 3 featured
「苻健求附款至,必無他變。素聞健弟狡黠,又夷狄不能同功,將有乖離,是以稽留耳。」
This line displays Zhang Ni's profound insight into the situation and his capacity for strategic foresight.
「無得妄動,動即殄矣!」
Terse and forceful, it embodies Zhang Ni's decisiveness and authority in military matters.
「昔岑彭率師,來歙杖節,咸見害於刺客,今明將軍位尊權重,宜鑒前事,少以為警。」
By citing a historical allusion to warn others, it shows his far-sighted planning and loyalty.
- Family
- Lord & vassal
- Friends
- Enemies
- Other
Who is Zhang Ni connected to?
Pick someone to see how many steps lie between them and Zhang Ni.
History vs. novel
7 points · 4 novel-only
| History | Novel |
|---|---|
| Fire Attack in Pan Snake ValleyNovel only | |
| — | In the novel, during Zhuge Liang's Southern Campaign, Zhuge Liang orders Zhang Ni and Ma Zhong to lead a thousand surrendered tribesmen in carrying out the plan and taking part in preparations for the fire attack in Pan Snake Valley. ch. 90 |
| Wang Shuang's Mace Wounds Zhang NiNovel only | |
| — | In the novel, Zhang Ni and Wang Shuang fight several rounds to a draw. While pursuing Wang Shuang, Zhang Ni is struck in the back by Wang Shuang's meteor hammer and is wounded, coughing up blood. ch. 97 |
| Troops Depart from Jigu ValleyNovel only | |
| — | The novel depicts Zhuge Liang planning the Northern Expedition and ordering Zhang Ni and others to set out from Jigu Valley and rendezvous at Mount Qi, showing Zhang Ni's role in Zhuge Liang's military plans. ch. 100 |
| Grain Transport OfficerNovel only | |
| — | The novel depicts Jiang Wei setting out to attack Wei and appointing Zhang Ni as grain transport officer, portraying him as a logistics commander. ch. 109 |
| Killed in Action at DidaoNovel embellishes | |
Zhang Ni accompanied Jiang Wei on a campaign in Longxi and was killed while fighting the Wei general Xu Zhi at Didao. The number of enemy troops he killed and wounded exceeded the number of his own side's dead. vol. 43 | The novel depicts Zhang Ni leading several hundred cavalrymen in a charge into the encirclement to rescue Jiang Wei, after which he is shot dead by a volley of arrows from Wei troops, recasting his death as a self-sacrificing rescue. ch. 111 |
| Warns Fei YiHistory only | |
Zhang Ni wrote to Fei Yi to warn him to beware of assassins, pointing out that Cen Peng and Lai Xi had been killed. Fei Yi was later indeed killed by Guo Xiu, a Wei defector. vol. 43 | — |
| Winning Over Wei LangHistory only | |
Zhang Ni led a campaign against the Zhuma tribes, who refused to submit to the authorities. After capturing their leader Wei Lang, he released him and explained the consequences to him, prompting him to persuade the remaining tribesmen to surrender. Zhang Ni later submitted a memorial appointing Wei Lang as a lord of a town. vol. 43 | — |
- Fire Attack in Pan Snake ValleyNovel only
- Novel
In the novel, during Zhuge Liang's Southern Campaign, Zhuge Liang orders Zhang Ni and Ma Zhong to lead a thousand surrendered tribesmen in carrying out the plan and taking part in preparations for the fire attack in Pan Snake Valley.
ch. 90
- Wang Shuang's Mace Wounds Zhang NiNovel only
- Novel
In the novel, Zhang Ni and Wang Shuang fight several rounds to a draw. While pursuing Wang Shuang, Zhang Ni is struck in the back by Wang Shuang's meteor hammer and is wounded, coughing up blood.
ch. 97
- Troops Depart from Jigu ValleyNovel only
- Novel
The novel depicts Zhuge Liang planning the Northern Expedition and ordering Zhang Ni and others to set out from Jigu Valley and rendezvous at Mount Qi, showing Zhang Ni's role in Zhuge Liang's military plans.
ch. 100
- Grain Transport OfficerNovel only
- Novel
The novel depicts Jiang Wei setting out to attack Wei and appointing Zhang Ni as grain transport officer, portraying him as a logistics commander.
ch. 109
- Killed in Action at DidaoNovel embellishes
- History
Zhang Ni accompanied Jiang Wei on a campaign in Longxi and was killed while fighting the Wei general Xu Zhi at Didao. The number of enemy troops he killed and wounded exceeded the number of his own side's dead.
vol. 43
- Novel
The novel depicts Zhang Ni leading several hundred cavalrymen in a charge into the encirclement to rescue Jiang Wei, after which he is shot dead by a volley of arrows from Wei troops, recasting his death as a self-sacrificing rescue.
ch. 111
- Warns Fei YiHistory only
- History
Zhang Ni wrote to Fei Yi to warn him to beware of assassins, pointing out that Cen Peng and Lai Xi had been killed. Fei Yi was later indeed killed by Guo Xiu, a Wei defector.
vol. 43
- Winning Over Wei LangHistory only
- History
Zhang Ni led a campaign against the Zhuma tribes, who refused to submit to the authorities. After capturing their leader Wei Lang, he released him and explained the consequences to him, prompting him to persuade the remaining tribesmen to surrender. Zhang Ni later submitted a memorial appointing Wei Lang as a lord of a town.
vol. 43
Combat
On the field
Duels, kills and executions as the texts tell them, counted separately for the Records and the Romance.
- RecordsJuan 43AssassinationZhang MuWon「因斬慕等五十餘級」
- RecordsJuan 43ExecutionDong FengWon「嶷誅逢」
- RecordsJuan 43AssassinationPoquWon「二人遂合謀殺渠」
- RecordsJuan 43ExecutionLi QiuchengWon「數其宿惡而誅之」
- RecordsJuan 43ExecutionLang CenWon「撻而殺之」
- RecordsJuan 43Struck downXu ZhiLost「嶷臨陣隕身」
All encounters (9)
Loading…
Stratagems
Plans this person devised or saw through, as the texts tell them.
- Records
- 3 carried out · 3 worked · 0 turned down · 0 seen through
- RecordsFeign Reconciliation and Host a BanquetDeceptionWorkedagainst the Mianzhu mountain bandits of GuanghanJuan 43「乃詐與和親,剋期置酒。酒酣,嶷身率左右,因斬慕等五十餘級」
- RecordsDouble Agent StratagemSowing discordWorkedagainst the western frontierJuan 43「許以重賞,使為反間,二人遂合謀殺渠」
- RecordsWinning Allegiance with Oxen and WinePersuasionWorkedagainst Maoniu tribesJuan 43「嶷逆遣親近繼牛酒勞賜,又令離姊逆逢妻宣暢意旨」
Events
Events (13)
Battles and events the texts place this person in, by date.
Battles
Famous objects
Places
- Native of
- Ba CommanderyRecords

Continue
Zhuge Liang's Fourth Northern Expedition
Relationship timeline11 entries ▸
History · vol. 43
- Ma Zhong§39
Advised
was appointed a Gate General under Ma Zhong; campaigned north against the rebellious Qiang of Wenshan and pacified the non-Han peoples of the four southern commanderies
- Zhang Mu§39
Fights
feigned reconciliation, held a banquet, and beheaded Zhang Mu and over fifty others
- Wei Lang§40
Fights
after capturing Wei Lang alive, untied and released him, and instructed him; submitted a memorial recommending him as a town marquis
- Dong Feng§41
Fights
executed Dong Feng
- Lang Lu§43
Advised
Zhong again ordered Lu Gu to convey his intentions; Lu led his brothers, wives, and children all to Yi, reopening the old road
- Zhuge Zhan§47
Advised
Wrote to Zhan, admonishing him not to let Zhuge Ke set foot in enemy territory
- Jiang Wei§49
Fights
General of the Guards Jiang Wei led Yi and others on an expedition into Longxi
- Xu Zhi§49
Slayer
Clashed at Didao; Yi died in battle
All 11
Loading…
Inner monologues · AI-generated3 monologues ▸
- I have long suffered from rheumatism. When I reached Chengdu, I could stand only with the support of a cane. Yet when Li
- I am Zhang Ni, courtesy name Boqi. I recall that when Fu Jian, king of the Di in Wudu, asked to submit, the men sent to
- My name is Yi, and my courtesy name is Boqi. I am from Nanchongguo in Ba Commandery. If you ask what was noteworthy abou

