Later on, Junyi offered his services to Yuan Shao as Commandant. Due to his outstanding performance in the battles against Gongsun Zan, he was promoted to the rank of Imperial Corps Commander, eventhrough Yuan Shao never able to use his potential into his fulliest.
During the battle at Guan Du, Zhang He was one of Yuan Shao's top Commanders along with Gao Lan. He dueled with Zhang Liao, but neither side was victorious. After failing to raid Lord Cao’s camp, Zhang He and Gao Lan were forced to defect to Lord Cao's side.
Under Lord Cao Cao, Zhang He was appointed as Auxiliary General and titled Lord of a Capital Precinct. He followed Lord Cao in the pacification of the north, defended against Ma Chao's invasion and helped take and defend Hanzhong. For his achievements, Junyi was appointed as General Who Destroys the Rebels and took the commission of permanent defense of the Hanzhong region.
Zhang He respected scholars and men of wisdom, and he would always do his best to learn and adapt to new situations. He showed his brilliance by seeing through Zhuge Liang's plot to take Mount Dingjun, but because of Xiahou Yuan's impatience, the battle was still lost.
Cao Pi promoted Zhang He to General of the Right and Lord of Fief and his ability was feared by Zhuge Liang and Shu. In the year AD 231, when Zhuge Liang was retreating from battle because oh lack of supplies, Zhang He forced Wei Yan to a flight and pursued all the way to Mu Men. However, he was ambushed by a squadron of arablist michine and died on the battlefield. He was posthumously titled Courageous Lord by Cao Pi
Distinguish from Zheng He.