In the autumn of 256, as Deng Ai predicted, Jiang Wei led troops from Zhongti to attack Mount Qi but was repelled by the defences set up by Deng Ai earlier. Jiang Wei then headed to Dong Village (董亭; south of present-day Wushan County, Gansu) while Deng Ai stationed his troops at Mount Wucheng (武城山; in present-day Chencang District, Baoji, Shaanxi). Jiang Wei tried to seize control of the mountainous terrain from Deng Ai, but was driven back. That night, Jiang Wei attempted to cross the Wei River to attack Shanggui (上邽; present-day Tianshui, Gansu). Deng Ai intercepted Jiang Wei at Duan Valley (段谷; southwest of present-day Tianshui, Gansu) and defeated him.