Xiahou Yuan
In 212, Zhang He accompanied Xiahou Yuan on a campaign against another of the warlords, Liang Xing (), and the Di tribes in Wudu Commandery (武都郡; in present-day Longnan, Gansu). In 214, Xiahou Yuan and Zhang He defeated Ma Chao, who had borrowed troops from the warlord Zhang Lu in Hanzhong Commandery after being driven out of Guanzhong. They also eliminated rebel forces led by Song Jian ().