Hanzhong Campaign
Cao Zhang then hurried west to take part in the Hanzhong Campaign against Liu Bei. Upon reaching Chang'an, however, he found out that the war had already been lost. Cao Cao then promoted his son to General of the Elite Cavalry (越騎將軍) and left him to defend Chang'an against probable advances of Liu Bei.