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.
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. 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. 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. 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. ==Hanzhong Campaign==