Zhang He began his service under Yuan Shao. However, during the battle of Guan Du when Yuan Shao's forces were being routed by Cao Cao, Zhang He noticed how "unbeautiful" Yuan Shao's tactics were, and thus defected to Cao Cao and the Wei army.
He was in many battles, most noticeably his role in the battle of Jieting when he trapped Shu's young strategist Ma Su on a mountain road and nearly killed him.