In 255, when Jiang Wei announced his plan to the Shu imperial court to launch another campaign against Wei, Zhang Yi openly objected to Jiang Wei's idea and pointed out that Shu lacked the resources to go to war and that the people were already tired of war. Jiang Wei ignored him and led a Shu army comprising tens of thousands of troops, with Zhang Yi and Xiahou Ba as his deputies, to attack Wei. Between 18 September and 17 October, the Shu army reached Fuhan County (枹罕縣; northeast of present-day Linxia County, Gansu) and prepared to attack Didao (狄道; present-day Lintao County, Gansu).