 When he arrived at Yang'an Pass, he ordered Hu Lie () to lead the attack on the pass.Hu Lie succeeded in capturing the pass and the supplies stored there by Shu forces.Jiang Wei retreated from Tazhong towards Yinping (陰平; northwest of present-day Wen County, Gansu), where he rallied his troops and prepared to reinforce Yang'an Pass.