The Battle of Mount Dingjun was fought between the warlords Liu Bei and Cao Cao in 219 during the prelude to the Three Kingdoms stretch of Chinese history. Liu Bei's victory in the battle marked a major milestone in his Hanzhong Campaign and allowed him to kill the commander of the Wei's forces, Xiahou Yuans and later taking Hanzhong Commandery. The battle In 217, Liu Bei led a campaign to attack Hanzhong, which was under the control of Cao Cao. His force met with resistance led by Xiahou Yuan at Yangping Pass (). The confrontation dragged on for more than a year until one night, Liu Bei set fire to the barbed fence around Xiahou Yuan's camp at the foot of Mount Dingjun. Alarmed by the attack, Xiahou Yuan sent Zhang He to defend the eastern corner of the camp, while he guarded the south. Liu Bei's main force pressed against Zhang He, outmatching the latter. Xiahou Yuan had to dispatch a fraction of his own troops to Zhang He's rescue. Fa Zheng saw that the situation was turning in their favor and advised to attack the Wei forces. Although Xiahou Yuan's soldiers were more experienced; Huang Zhong rallied his men, led the charge forward and along with "drums that shook the heavens and shouts that moved the valley" they descended upon Xiahou Yuan's forces. The battle became a rout and Xiahou Yuan and his son Xiahou Rong were both killed in action along with his deputy. In Romance of the Three Kingdoms In chapter 71 of the 14th-century historical novel Romance of the Three Kingdoms, Xiahou Yuan had his camp set up on Mount Dingjun, so he could easily see the enemy camp at the bottom of the mountain. Huang Zhong moved his camp nearer and nearer to Xiahou Yuan's camp every few days. Later, Xiahou Yuan came up with a strategy to lure Huang Zhong and capture him. He sent Xiahou Shang to Huang Zhong's camp, challenging Huang to come out and fight him. However, Chen Shi, Huang Zhong's subordinate, volunteered to fight Xiahou Shang. Xiahou Shang feigned defeat and retreated. Chen Shi would not give up and pursued Xiahou Shang, but fell into an ambush set by Xiahou Yuan and was captured. Xiahou Yuan was not very happy as he had expected to capture Huang Zhong. Xiahou Shang was later captured by Huang Zhong in battle. Xiahou