But Ma Su, upon arriving at Jieting, disobeyed Zhuge Liang's orders and abandoned the main road, instead encamping his troops on the hilltop. The deputy general Wang Ping earnestly advised, 'The Prime Minister repeatedly instructed before departing that we should set up camp on the main road.' Now you, General, abandon the main road and take to the hilltop. If the Wei forces surround us and cut off our water supply, what then?' Ma Su rebuked him, 'I have thoroughly studied the art of war. From a high position, we can sweep down with irresistible force! If they attack, we can capture them all at once. You have the vision of a woman and are not worth consulting!' Wang Ping He repeatedly advised but was ignored, so he could only lead his own troops to set up camp ten li down the mountain to prepare for support.
Emperor Cao Rui of Wei, upon hearing the report that Shu forces were invading, again appointed Sima Yi as Grand Commander to lead 200,000 troops to defend. Sima Yi anticipated that Jieting was a strategic point and rushed there overnight. Seeing that Ma Su had abandoned the main road and camped by the mountain, Sima Yi laughed and said, 'Ma Su is ignorant; he is seeking his own destruction!' He then ordered his troops to surround the hill and cut off their water supply. The Shu troops had no water, and their morale fell into chaos. Sima Yi took advantage to attack the hill. Ma Su could not hold his ground and fled, abandoning his armor. Wang Ping saw that the situation was hopeless and also led his troops in retreat. Thus Jieting was lost. When Zhuge Liang heard that Jieting had fallen, he was greatly alarmed and urgently ordered all troops to retreat.
Now, Zhuge Liang learned that Jieting was lost and that Wei Yan, Zhao Yun, and others had also suffered setbacks; the main army was destabilized. Liang urgently ordered Ma Zhong and Jiang Wei to arrange for the various troops to withdraw first, while he himself led only 5,000 soldiers to Xicheng County to transport provisions. Suddenly, it was reported that Sima Yi was leading 150,000 troops and was only twenty li from Xicheng. At that time, there were no other generals in the city, only a group of civil officials and 2,500 soldiers. All the officials were terrified and wanted to abandon the city and flee. Liang said, 'Our army has already retreated. If we abandon the city and run, it will arouse suspicion.' He then ordered the city gates to be opened wide, and at each gate only twenty or so soldiers disguised as commoners were sent to sweep the streets. He also ordered the troops to lower their banners and silence their drums, and not to move recklessly. Liang himself donned a crane-feather cloak, took two young attendants carrying a zither, ascended the city wall tower, leaned on the railing while sitting, burned incense, and played the zither, the sound echoing across the land.