Battle of Didao The Battle of Didao , also known as the Battle of Taoxi , was fought between the states of Shu Han and Cao Wei in 255 during the Three Kingdoms period of Chinese history . The battle concluded with a Wei Pyrrhic victory . Prelude . In July 255 , Shu general Jiang Wei decided to take advantage of the death of Wei regent Sima Shi by launching another campaign against Wei . The invasion force was one of the largest Jiang Wei had gathered in his Northern Expeditions , totalling at least 30 , 000 men , and including commanders such as Xiahou Ba and Zhang Yi . It is worth nothing that both Xiahou Ba and Zhang Yi held higher appointments than Jiang Wei in administrating civil affairs , but Jiang Wei was in command instead because it was a military campaign . Xiahou Ba was a blood relative of the Shu imperial family ( he was an uncle of Shu emperor Liu Shan and both of his nieces were married to Liu Shan ) . Zhang Yi was considered more senior than Jiang Wei and Xiahou Ba as he served Shu ' s founding emperor Liu Bei , while Jiang and Xiahou only joined Shu after Liu Bei ' s death . By August 255 , Jiang Wei ' s army took Baohan ( 枹罕 ; located northeast of present - day Linxia County , Gansu ) , and advanced toward Didao ( 狄道 ; present - day Lintao County , Gansu ) . The newly appointed Wei Inspector of Yong Province , Wang Jing ( 王經 ) , immediately notified his direct superior , General Who Subdues the West , Chen Tai , claiming that the enemy appeared to attack simultaneously on three fronts , targeting Mount Qi ( 祁山 ) , Shiying ( 石营 ) , and Jincheng ( 金城 ; present - day Lanzhou , Gansu ) , and suggesting that they should engage the enemy on those fronts . Wang Jing volunteered to lead an army to face the enemy at Shiying , and proposed having another force to defend Mount Qi . Meanwhile , Wei armies in Liang Province should be deployed to Baohan to check the enemy ' s advance towards Jincheng . Chen Tai was dubious about this initial intelligence since it was highly unlikely that Shu could rally such a huge army for the campaign Wang Jing perceived . Nonetheless , the Shu invasion force was one of the largest so far , and the Wei defenders could not afford to split forces . Furthermore , Wei armies in Liang Province would not be fully utilized if they were deployed elsewhere , since they would be fighting on unfamiliar terrain . Hence , Chen Tai replied to Wang Jing that they must further carefully analyze Jiang Wei ' s move because it was unlikely that the enemy could afford to split their forces on different fronts , and Wei must concentrate its forces to achieve absolute numerical superiority over the enemy . Wang Jing was ordered to focus on defending Didao and refrain from engaging the enemy , while waiting for the arrival of reinforcements . Chen Tai asked the Wei imperial court for reinforcements , while he led a relief army towards Chencang ( 陳倉 ; located east of present - day Baoji , Shaanxi ) . The battle . Wei defeat at Gu Pass . Wang Jing , with virtually no military experience , had gravely underestimated the enemy and erroneously believed that the enemy would be tired after the prolonged march , and it would be better not to provide the enemy any chance to rest and regroup , but to defeat them early in a preemptive strike . Wang Jing was confident that he would have a decisive victory because his enjoyed the numerical superiority over the enemy , and unlike his enemy whose supply line was overstretched , his own force on the defensive had no logistic problems . Therefore , Wang Jing ignored Chen Tai ' s order to remain in Didao , and instead led his force ventured out to Gu Pass ( 故關 ) on the upstream of the Tao River . Gu Pass was located to the north of present - day Lintao County , Gansu , and it was on the western bank of the Tao River , and this was the place Wang Jing had selected to annihilate the invading enemy who were supposed to be tired and short on supplies , and thus had lower morale . In August , 255 , both sides clashed on the western bank of the Tao River , and Wei suffered a disastrous defeat : the number of soldiers drowned in the Tao River in their attempts to escape alone totalled more than 10 , 000 , and most of Wang Jing ' s troops were lost . Wang Jing was forced to lead his remaining 10 , 000 troops to retreat back to Didao in the south after crossing the Tao River , and regroup behind the safety of the city walls . The battle on the western bank of Tao River ( also known as the Battle of Taoxi ) , also known as the Battle of Gu Pass , was the greatest victory Jiang Wei had achieved in his northern expeditions , and it was also his last . After the initial victory , Zhang Yi accurately realized the supply problems Shu faced , and suggested to Jiang Wei to withdraw . Jiang Wei , wanting to ride his initial victory to take Didao , angrily turned down the suggestion and besieged Didao . As the news of Wang Jing going out to engage Jiang Wei reached Chen Tai , he immediately and accurately predicted that Wei would suffer a defeat and thus ordered his cavalry to the rescue , and he would lead the infantry himself to follow . Chen Tai also wrote an urgent message to the Wei imperial court for additional reinforcements . When the news of disaster reached the Wei capital , Luoyang , the imperial court was worried that Chen Tai alone would not be able to salvage the situation . Chang River Regiment Colonel Deng Ai , who had just arrived in Luoyang , was appointed Acting General Who Pacifies the West , and was sent to assist Chen Tai . As soon as Deng Ai had left Luoyang , Wei regent Sima Zhao also put his uncle , Grand Commandant Sima Fu , in charge of Guanzhong to help coordinate logistics for Wei forces for the war efforts . Wei strategies to counter Shu . When the news of the siege of Didao reached Chen Tai initially , he believed that the city would not fall that easily , but the reinforcement he sent was definitely not enough , thus he asked the Wei imperial court for more . Most officials in the court , however , was worried that after the disastrous defeat Wang Jing would not last until the reinforcement arrived , and the enemy would have the absolute geographical advantage after taking the walled city . They further predicted the four commanderies in western Gansu would be lost for sure , and concluded it would be better to take more time to gather a much greater army to fight a prolonged war to regain the control of the region instead of wasting resources on a seemingly impossible task that would be destined to fail . Sima Zhao brushed such concerns aside , pointing out that if even Zhuge Liang could not achieve the goal of taking four commanderies in western Gansu in his Northern Expeditions when he was alive , Jiang Wei would be certainly not able to achieve the same . It would not be easy to immediately take Didao and the invading enemy would soon run out supplies , and thus Chen Tai ' s request for immediate reinforcements was absolutely correct . As Chen Tai led his force to Shanggui ( 上邽 ; present - day Tianshui , Gansu ) , other reinforcements included those led by Deng Ai , Hu Fen ( 胡奮 ) , and Wang Mi ( 王秘 ) also arrived . During a military counsel , Deng Ai ' s opinion was echoed by everyone except Chen Tai , whom Deng attempted to convince by claiming that after the devastating defeat of Wang Jing that caused most of their crack troops in the region to be annihilated , the morale of the enemy was extremely high and the that of their own troops was low , and that reinforcement was gathered in haste after the defeat , so it was difficult to achieve victory over the enemy at this time . It would be wise to sacrifice some local interests in order to save the overall interest - it might be better to leave Wang Jing to fend for himself , and wait until the enemy became tired and less alert , and then launch a counteroffensive . Chen Tai opposed Deng Ai ' s proposal that was agreed by everyone else . Chen Tai reasoned that Jiang Wei ' s advantage was to fight a quick battle because he did not enough supply for a prolonged struggle due to logistic problem . Wang Jing was supposed to avoid readily combating the invading enemy in the first place and wait until the enemy exhausted its supplies , and then counterattack only when he joined forces with the reinforcements . Instead , Wang Jing did exactly what Jiang Wei had hoped and rushed to battle and faced a devastating defeat . Had Jiang Wei rode on his initial victory and continue eastward to take important grain production region of Wei , he would have a chance to disrupt Guanzhong , which was truly the real threat . In fact , Jiang Wei might even had a chance to take both Yong and Liang provinces if he had gone for them , and gathered support of minorities in the north and northwest . Instead , Jiang Wei had made a grave military blunder in besieging Didao , which would risk running out the limited supply he had . Attempting to take the city was the worst choice because it would take time to make the preparation , while at the mean time , the defenders had their backs against the wall and would fight to the death to defend the city . This would provide the excellent opportunity to repel the invading Shu army because Wei reinforcement enjoyed the geographical advantage for being stationed in the high grounds in the mountains , while it was difficult for Shu forces in the plains at the lower level to attack upward . Finally , Chen Tai reminded his subordinates that the morale of the enemy would not last long once their supply begun to run out , and everyone concurred with Chen Tai ' s ideas . Chen Tai subsequently divided his force into three fronts and pushed toward western Gansu , bypassing Jiang Wei ' s force , and reached the mountains to the southeast of Didao . Arrival of reinforcements at Didao . As the siege of Didao continued , the supply problem begun to take its toll on the overstretched Shu force , and there were more bad news for Jiang Wei . The news of Wei reinforcements arrived from Jincheng on the upstream of the Tao River , while at the same time , Chen Tai ' s reinforcements bypassed Gaocheng Ridge ( 高城嶺 ; located northwest of present - day Weiyuan County , Gansu ) , and took position in the mountains to the southeast of the besieged Didao . After several failed attempts of attacking the mountain ridge , it was obvious to Shu commanders that their hungry soldiers could not dislodge the Wei reinforcements . The reinforcements in the mountains just outside the city wall established the link with the city by means of smoke and drums , and the defenders ' morale was greatly boosted . Chen Tai was well aware that despite the numerical advantage and newly boosted morale , the Wei force was not in a position to counterattack . Instead , Chen Tai deployed a clever tactic by releasing the news of a planned counteroffensive in which the Wei force would attack the Shu force from both sides . With supplies running out , Jiang Wei was forced to concede defeat by retreating on September 25 , 255 to Zhongti ( 鐘堤 ; located south of present - day Lintao County , Gansu ) at the downstream of the Tao River , to the south of Didao . The battle therefore was concluded with a Wei victory . As Wang Jing opened the city gate to welcome Chen Tai , he cordially thanked the latter , revealing that the food left was not enough to last for ten days , and the city would definitely fall if the reinforcements failed to arrive in time . After re - supplying the city and reorganize the defense , Chen Tai and his force returned to Shanggui . Aftermath . Although successfully repelling the invading Shu army led by Jiang Wei , Wei had suffered a terrible loss . In October 255 , the Wei emperor Cao Mao issued an imperial decree in which he ordered the local civilian officials and military officers to devote their sources fully to the relief effort . The military draft and tax levied on the local populace were waived for a year . Cao Mao soon issued another imperial decree in November 255 to further boost the morale and the support of the local populace by granting amnesty to the local family members left behind by those defected to Shu . Merely half a month after his second decree , Cao Mao issued a third decree , in which he ordered Chen Tai and Deng Ai to commit all of their forces to fish out all of the remaining cadavers of Wei soldiers in the Tao River , and bury them with other killed in the battle . It was more than hundred days after the end of the battle , and the devastation was so great that many of the battle dead had yet to be properly buried . For his brilliant achievement , Chen Tai was recalled to Luoyang to be promoted to Imperial Secretariat , and the position of General Who Subdues the West was succeeded by Sima Wang . Deng Ai was no longer in an acting appointment , but now officially General Who Pacifies the West ( 安西将军 ) , and he was put in charge of both Yong and Liang provinces . Wang Jing , who was the cause of the initial Wei defeat and subsequent devastation , was reassigned to another position in the capital and the vacant position of Inspector of Yong he left behind was filled by Deng Ai ' s subordinate Zhuge Xu ( 諸葛緒 ) . Order of battle . Wei forces Shu forces Analysis . Although forced to retreat , this battle was actually one of the greatest success Jiang Wei had achieved in his Northern Expeditions . Unfortunately , the weak Shu could not support the large scale logistic needed to sustain the long term siege and consequently , Jiang Wei was forced to admit defeat by retreating as in the previous expeditions . For Wei , despite suffering heavy losses , the enemy was nonetheless beaten back , and it would be a matter of time before Wei could fully recover , albeit it would take longer than usual . The battle clearly revealed the strength of the opposing states and it would be Wei and its successor that would eventually unify China once again .