Cao Cao returned to Ye (in present-day Handan, Hebei) after his victory over Zhang Lu at the Battle of Yangping in 215. He left Xu Huang and Xiahou Yuan behind to defend Hanzhong Commandery against attacks by Liu Bei.