In 196, the warlord Cao Cao led his forces into the ruins of the old imperial capital, Luoyang, where he met Emperor Xian, the figurehead Han emperor who had been held hostage consecutively by the warlords Dong Zhuo, Li Jue and Guo Si since his coronation in 189.
He had only escaped from Chang'an in late 195 after being held hostage by Li Jue and Guo Si since Dong Zhuo's death in 192.
[1] In the meantime, Li Jue and Guo Si's power bloc in Chang'an and the Guanzhong region started to weaken and break up – especially after Emperor Xian's escape.
Zhang Ji, a former ally of Li Jue and Guo Si, led his followers out of the Guanzhong region into Jing Province, which was governed by the warlord Liu Biao.
In an attempt to establish a foothold in Jing Province, Zhang Ji led his men to attack Rang County (穰縣; or Rangcheng 穰城; present-day Dengzhou, Henan) but was killed by a stray arrow in battle.
He also gave Zhang Xiu and his followers control over Wancheng (宛城; also known simply as Wan 宛; in present-day Nanyang, Henan) in northern Jing Province.
[8] At the time, Zhang Xiu had a close aide Hu Che'er (胡車兒), who was known for his exceptional courage.
[13][14] As Cao Cao and his remaining forces retreated to Wuyin County (舞陰縣; southeast of present-day Sheqi County, Henan), Zhang Xiu's forces continued to attack them along the way.
Only Yu Jin, a colonel under Cao Cao, managed to lead his unit on an orderly retreat towards Wuyin County and make his men stay together despite suffering many casualties and losses.
When Zhang Xiu's forces eased off their attacks, Yu Jin regrouped his men and they marched to Wuyin County in a dignified manner even though they lost the battle.
[15] Before reaching his destination, Yu Jin learnt that the Qingzhou Corps (青州兵), an elite unit in Cao Cao's army composed of former Yellow Turban rebels, had taken advantage of the chaos to pillage villages along the way.
He also thought that it was more important to strengthen their defences in case Zhang Xiu attacked again.
After failing to defeat Cao Cao at Wuyin County, Zhang Xiu retreated to Rang County (穰縣; or Rangcheng 穰城; present-day Dengzhou, Henan), where he met up with Liu Biao.
Cao Cao broke down in tears when he heard of Dian Wei's death, and later had Dian Wei's body retrieved and buried in Xiangyi County (襄邑縣; present-day Sui County, Henan).
During this time, Zhang Xiu and Liu Biao's forces attacked Cao Hong at Ye County several times but Cao Hong managed to defend his position.
At the bank of the Yu River (淯水; now known as the Bai River 白河; flowing through parts of present-day Henan and Hubei), he held a memorial service to mourn the people who lost their lives in the previous campaign against Zhang Xiu.
[20] Liu Biao sent Deng Ji (鄧濟), a military officer under him, to lead troops to occupy and guard Huyang County (湖陽縣; southwest of present-day Tanghe County, Henan).
Between 24 April and 23 May,[e] he launched a third campaign and led his forces to attack Zhang Xiu at Rang County (穰縣; or Rangcheng 穰城; present-day Dengzhou, Henan).
Upon hearing this, he immediately lifted the siege on Rang County and prepared to return to Xu.
Cao Cao then ordered his troops to secretly dig tunnels and transport their supplies and heavy equipment back to Xu under the cover of night, while he and his remaining troops hid themselves and waited in ambush.
[25][26] When Zhang Xiu came back after his defeat, Jia Xu told him to attack again and predicted that he would win this time.
Zhang Xiu wanted to agree, but his adviser Jia Xu told Yuan Shao's messenger, "I say 'No, thank you.'
A man who aspires to become a great ruler will be more willing to put aside personal enmities and make his virtues known to people.
[35] The Battle of Wancheng is featured in Koei's video game series Dynasty Warriors as a playable stage and the highlight of Dian Wei's story mode.
In Dynasty Warriors 7, after Cao Cao escapes from the castle, he attacks Zhang Xiu with Xiahou Dun and Xu Chu and ends up gaining Jia Xu in his ranks.