Zhang Fei () (; died July or August 221 AD), courtesy name Yide (益德), was a Chinese military general and politician serving under the warlord Liu Bei in the late Eastern Han dynasty and early Three Kingdoms period of China. Zhang Fei and Guan Yu, who were among the earliest to join Liu Bei, shared a brotherly relationship with their lord and accompanied him on most of his early exploits. Zhang Fei fought in various battles on Liu Bei's side, including the Red Cliffs campaign (208–209), takeover of Yi Province (212–214), and Hanzhong Campaign (217–218). He was assassinated by his subordinates in 221 after serving for only a few months in the state of Shu Han, which was founded by Liu Bei earlier that year.

Zhang Fei is one of the major characters in the 14th-century historical novel Romance of the Three Kingdoms, which dramatises and romanticises the events before and during the Three Kingdoms period. In the novel, Zhang Fei became sworn brothers with Liu Bei and Guan Yu in the fictional Oath of the Peach Garden at the start of the novel and remained faithful to their oath until his death.

Early career Zhang Fei was from Zhuo Commandery. In the 180s, towards the end of the Eastern Han dynasty, he and Guan Yu became Liu Bei's followers. As Guan Yu was several years older than Zhang Fei, Zhang regarded him as an elder brother.(張飛字益德,涿郡人也,少與關羽俱事先主。羽年長數歲,飛兄事之。) Sanguozhi vol. 36. Guan Yu and Zhang Fei were known as stalwart and strong men; which made them talented fighters.(河東關羽雲長,同郡張飛益德,並以壯烈,禦侮。) Huayang Guo Zhi vol. 6.

When Liu Bei was later appointed as the Chancellor of Pingyuan State () by the Han central government, Zhang Fei and Guan Yu served as Majors of Separate Command () under him. Liu Bei cherished them as if they were his own brothers, and the three of them shared a brotherly relationship to the point of sharing the same room, sleeping on the same mat and eating from the same pot.(先主與二子寢則同床,食則共器,恩若弟兄。然於稠人廣眾中,侍立終日。) Huayang Guo Zhi vol. 6. Zhang Fei and Guan Yu acted as bodyguards for Liu Bei. They followed him on his exploits and were always ready to face any danger and hardship.(先主於鄉里合徒衆,而羽與張飛為之禦侮。先主為平原相,以羽、飛為別部司馬,分統部曲。先主與二人寢則同牀,恩若兄弟。而稠人廣坐,侍立終日,隨先主周旋,不避艱險。) Sanguozhi vol. 36.

Conflict between Liu Bei and Lü Bu In 194, Liu Bei succeeded Tao Qian as the Governor of Xu Province. The following year, he led his forces to Huaiyin County, to counter an invasion by Yuan Shu. During this time, he left Zhang Fei behind to guard Xiapi, the capital of Xu Province.(英雄記曰:備留張飛守下邳,引兵與袁術戰於淮陰石亭,更有勝負。) Yingxiong Ji annotation in Sanguozhi vol. 32.

Zhang Fei wanted to kill Cao Bao, a former officer under Tao Qian, for reasons unknown. Cao Bao fled back to his own camp and set up defences while sending a messenger to request aid from Lü Bu, another warlord who was taking shelter under Liu Bei at the time. Lü Bu led his forces to attack Xiapi and succeeded in seizing control of Xiapi. Zhang Fei fled after losing Xiapi to Lü Bu.(陶謙故將曹豹在下邳,張飛欲殺之。豹衆堅營自守,使人招呂布。布取下邳,張飛敗走。) Yingxiong Ji annotation in Sanguozhi vol. 32.

Liu Bei returned to Xu Province, which was now under Lü Bu's control, and reluctantly accepted Lü Bu's offer to move to Xiaopei while Lü Bu remained in Xiapi. Tensions between Liu Bei and Lü Bu increased until the point of conflict. Liu Bei sought help from Cao Cao, a warlord who controlled the Han central government. Cao Cao and Liu Bei combined forces and defeated Lü Bu at the Battle of Xiapi in 198, after which they returned to the imperial capital Xu together. In Xu, Zhang Fei was appointed as a General of the Household ().(先主從曹公破呂布,隨還許,曹公拜飛為中郎將。) Sanguozhi vol. 36.

Roaming the land with Liu Bei In 199, Liu Bei pretended to volunteer to lead an army to attack Yuan Shu, and used that opportunity to leave Xu and escape from Cao Cao's watch. He headed to Xu Province, killed Che Zhou, the provincial governor appointed by Cao Cao, and seized control of Xiapi again. The following year, Cao Cao personally led his forces to attack Liu Bei, defeated him, and took back control of Xu Province. After his defeat, Liu Bei fled to Ji Province, where he took refuge under Cao Cao's rival, Yuan Shao.

Liu Bei later left Yuan Shao by pretending to help Yuan Shao gain support from local rebels in Runan in his war against Cao Cao. He eventually found shelter under Liu Biao, the Governor of Jing Province. Liu Biao put him in charge of Xinye County on the northern border of Jing Province.(... 先主還紹軍,陰欲離紹,乃說紹南連荊州牧劉表。紹遣先主將本兵復至汝南,與賊龔都等合,衆數千人。 ... 曹公旣破紹,自南擊先主。先主遣麋笁、孫乾與劉表相聞,表自郊迎,以上賔禮待之,益其兵,使屯新野。) Sanguozhi vol. 32.(先主背曹公依袁紹、劉表。) Sanguozhi vol. 36.

It is not known whether Zhang Fei followed Liu Bei to join Yuan Shao after Liu Bei's defeat in Xu Province, or whether he, like Guan Yu, was separated from Liu Bei during that period of time.

Red Cliffs campaign Battle of Changban

In 208, following Liu Biao's death, Cao Cao launched a military campaign aimed at wiping out opposing forces in Jing Province and the Jiangdong (or Wu) region. In the meantime, Liu Bei evacuated Xinye County and led his followers towards Xiakou, which was controlled by Liu Biao's elder son, Liu Qi.

Cao Cao was worried that Liu Bei would occupy Jiangling County, which was abundant in military resources, before he did. He immediately ordered his troops to leave behind their heavy equipment and baggage, and move swiftly to Xiangyang.(曹公以江陵有軍實,恐先主據之,乃釋輜重,輕軍到襄陽。) Sanguozhi vol. 32. When Cao Cao reached Xiangyang, Liu Biao's younger son and successor, Liu Cong, surrendered to him without putting up resistance. After learning that Liu Bei had already passed by Xiangyang, Cao Cao personally led a 5,000-strong elite cavalry force to pursue Liu Bei. After travelling over 300 li in just one day and one night, Cao Cao and his riders caught up with Liu Bei at Changban and attacked him. During the battle, Liu Bei abandoned his family and fled, with only Zhuge Liang, Zhang Fei, Zhao Yun and a small number of soldiers accompanying him. Cao Cao's forces captured many of Liu Bei's followers and his equipment.(聞先主已過,曹公將精騎五千急追之,一日一夜行三百餘里,及於當陽之長坂。先主棄妻子,與諸葛亮、張飛、趙雲等數十騎走,曹公大獲其人衆輜重。) Sanguozhi vol. 32.

Zhang Fei led 20 horsemen to cover Liu Bei's retreat. After destroying a bridge, he stood guard at one end (facing the enemy), brandished his spear, glared at the enemy and shouted: "I'm Zhang Yide. You can come forth and fight me to the death!" Cao Cao's soldiers were all afraid and did not dare to approach him. Liu Bei and his followers were hence able to retreat safely.(表卒,曹公入荊州,先主奔江南。曹公追之,一日一夜,及於當陽之長阪。先主聞曹公卒至,棄妻子走,使飛將二十騎拒後。飛據水斷橋,瞋目橫矛曰:「身是張益德也,可來共決死!」敵皆無敢近者,故遂得免。) Sanguozhi vol. 36.

Battle of Red Cliffs and after

In 208, Liu Bei and Sun Quan combined forces and defeated Cao Cao at the decisive Battle of Red Cliffs. Liu Bei later took control of southern Jing Province, with his headquarters at Nan Commandery and Gong'an County. Zhang Fei was appointed General Who Attacks Barbarians () and Administrator () of Yidu Commandery. He was also enfeoffed as the Marquis of Xin Village (). He was later reassigned to serve as the Administrator of Nan Commandery.(先主旣定江南,以飛為宜都太守、征虜將軍,封新亭侯,後轉在南郡。) Sanguozhi vol. 36.

Yi Province campaign

Earlier defence of Jing Province In 211, Liu Bei led an army to Yi Province to assist the governor Liu Zhang in countering the advances of a rival warlord, Zhang Lu of Hanzhong Commandery. He left Zhang Fei and others behind to guard Jing Province in his absence. Earlier in 209, Liu Bei married Sun Quan's younger sister Lady Sun to strengthen the alliance between him and Sun Quan. Because of her brother's strong influence, Lady Sun was arrogant and she allowed her close aides to behave lawlessly. Even Liu Bei was afraid of her. When Sun Quan heard that Liu Bei had left for Yi Province, he sent a vessel to Jing Province to fetch his sister home. Lady Sun attempted to bring along Liu Bei's son Liu Shan with her, but Zhang Fei and Zhao Yun led their men to stop her and managed to retrieve Liu Shan.(先主入益州,雲領留營司馬。此時先主孫夫人以權妹驕豪,多將吳吏兵,縱橫不法。先主以雲嚴重,必能整齊,特任掌內事。權聞備西征,大遣舟船迎妹,而夫人內欲將後主還吳,雲與張飛勒兵截江,乃得後主還。) Zhao Yun Biezhuan annotation in Sanguozhi vol. 36.

Conquest of Yi Province Around 212, relations between Liu Bei and Liu Zhang deteriorated to the point of conflict, when Liu Bei started a campaign aimed at seizing Yi Province from Liu Zhang. Liu Bei ordered Zhuge Liang, Zhao Yun, Zhang Fei and others to lead reinforcements into Yi Province to help him, while Guan Yu remained behind to defend Jing Province.(先主軍益強,分遣諸將平下屬縣,諸葛亮、張飛、趙雲等將兵溯流定白帝、江州、江陽,惟關羽留鎮荊州。) Sanguozhi vol. 32.(先主入益州,還攻劉璋,飛與諸葛亮等泝流而上,分定郡縣。) Sanguozhi vol. 36. When Liu Zhang heard that Liu Bei received reinforcements from Jing Province, he dispatched Zhang Yi (Junsi) with an army to stop them at Deyang County. However, Zhang Fei defeated them and forced Zhang Yi to withdraw back to Chengdu.(張飛自荊州由墊江入,璋授裔兵,拒張飛於德陽陌下,軍敗,還成都。) Sanguozhi vol. 41.

Along the way, Zhang Fei attacked Jiangzhou, which was defended by Zhao Zan (趙筰) the Administrator of Ba Commandery along with his more famous subordinate Yan Yan, a military officer serving under Liu Zhang. He defeated both of them and captured Yan Yan alive. Zhang Fei asked him: "When my army showed up, why did you put up resistance instead of surrendering?" Yan Yan replied: "You people launched an unwarranted attack on my home province. There may be generals in my province who will lose their heads, but there are none who will surrender." Zhang Fei was enraged and he ordered Yan Yan's execution. An expressionless Yan Yan asked: "If you want to chop off my head, then do it! What's with that outburst of anger?" Zhang Fei was so impressed with Yan Yan's courage that he released him and treated him like an honoured guest.(至江州,破璋將巴郡太守嚴顏,生獲顏。飛呵顏曰:「大軍至,何以不降,而敢拒戰?」顏荅曰:「卿等無狀,侵奪我州,我州但有斷頭將軍,無有降將軍也。」飛怒,令左右牽去斫頭,顏色不變,曰:「斫頭便斫頭,何為怒邪!」飛壯而釋之,引為賔客。) Sanguozhi vol. 36.(十九年,關羽統荊州事。諸葛亮、張飛、趙雲等泝江,降下巴東。入巴郡。巴郡太守巴西趙筰拒守,飛攻破之。) Huayang Guo Zhi vol. 5.

Zhang Fei's army then proceeded to break through Liu Zhang's defences until they reached Chengdu (Yi Province's capital), where they rendezvoused with Liu Bei and the others. In 214, Liu Zhang surrendered and yielded Yi Province to Liu Bei. Liu Bei rewarded Zhuge Liang, Fa Zheng, Zhang Fei and Guan Yu each with 500 jin of gold, 1,000 jin of silver, 50 million coins and 1,000 rolls of silk. Zhang Fei was also appointed as the Administrator () of Baxi Commandery.(飛所過戰克,與先主會于成都。益州旣平,賜諸葛亮、法正、飛及關羽金各五百斤,銀千斤,錢五千萬,錦千匹,其餘頒賜各有差,以飛領巴西太守。) Sanguozhi vol. 36.

Hanzhong Campaign

Battle of Baxi

In around 215, Cao Cao attacked and defeated Zhang Lu, after which Hanzhong Commandery came under his control. Cao Cao left Xiahou Yuan, Zhang He and others behind to defend Hanzhong while he returned to Ye.(曹公破張魯,留夏侯淵、張郃守漢川。) Sanguozhi vol. 36.

During that time, Zhang He led his forces to attack Baxi Commandery with the aim of forcing Baxi's residents to relocate to Hanzhong Commandery. His army passed through Dangqu (), Mengtou () and Dangshi () counties, and encountered Zhang Fei's troops. Both sides held their positions for over 50 days, after which Zhang Fei led about 10,000 elite soldiers and took an alternative route to attack Zhang He. As the mountain paths were very narrow and inaccessible, Zhang He's army was effectively divided into two because the troops at the front and the rear were unable to contact and assist each other, resulting in a victory for Zhang Fei. Zhang He and about ten of his men escaped on foot through a shortcut and retreated back to Nanzheng. Peace was restored in Baxi Commandery.(郃別督諸軍下巴西,欲徙其民於漢中,進軍宕渠、蒙頭、盪石,與飛相拒五十餘日。飛率精卒萬餘人,從他道邀郃軍交戰,山道迮狹,前後不得相救,飛遂破郃。郃棄馬緣山,獨與麾下十餘人從間道退,引軍還南鄭,巴土獲安。) Sanguozhi vol. 36.

Conquest of Hanzhong