Guo Huai had already been struggling to hold out against Liu Feng and Hou Yin's attacks. Now he was also ordered to arrange the civilians' evacuation. He decisively moved some of them, then withdrew without hesitation, stationing his troops at Wuguan Pass to prevent Wei Yan's forces from pursuing.
By the time Wei Yan's army arrived from Hanzhong, most of the civilians north of Guancheng in Nanyang had already been evacuated. Xiahou Dun personally coordinated the defenses and escorted Cao Zhen's army as it slowly retreated to Guangchengguan Pass. Seeing that his objective had been achieved, Cao Ren also withdrew to Yecheng.
Thus, the great battle for Nanyang came to an end. Liu Bei, King of Hanzhong, gained most of Nanyang's territory and half its population, while Cao Wei covered the evacuation of the other half. Neither side had suffered a crippling blow, and so the war ended.
Gaining such a large territory should have been good news for Shu Han. But Cao Pi sent Xiahou Dun to Guanzhong to oversee the defenses of Guanzhong and Luoyang, strengthening Cao Wei's control over Guanzhong and Liangzhou. This was actually bad news for Shu Han.
That was because attacking Cao Wei from either Hanzhong or Nanyang would be extremely difficult. Shu Han was more likely to be the one attacked.
Still, Liu Bei's forces were strong and numerous now, so he had no fear of losing the territory he had just won.
However, with such a vast territory, it was no longer suitable for Liu Bei to remain in Chengdu. If anything unexpected happened in the future, sending aid would be extremely difficult.
But Wang Yue had no time to worry about all that. With Zhuge Liang and Fa Zheng urging him on, Liu Bei had taken advantage of their great victory