Zhang Liao (169–222) was a military general serving under the warlord Cao Cao during the late Han Dynasty and early Three Kingdoms era of Chinese history. He participated in many campaigns, including those against Yuan Shao's clan and the Wuhuan tribes. Zhang Liao was most noted for his pivotal role in the Battle of Xiaoyao Ford in 217, where he successfully defended the city of Hefei against the advances of Sun Quan's massive army.
Chen Shou, author of the Records of Three Kingdoms, considered Zhang Liao among the Five Elite Generals, along with Xu Huang, Yue Jin, Zhang He and Yu Jin.
A local of Mayi (馬邑; present-day Shuo County, Shanxi), Zhang Liao was originally surnamed Nie (聶). He served as a local administrative officer during his younger days. Towards the end of the Han Dynasty, Ding Yuan, governor of Bing Province (并州; covering present-day Shanxi), favored Zhang Liao's martial skills and recruited him.
In 189, Ding Yuan and his trusted aide, Lü Bu, led troops into Luoyang to assist General-in-Chief He Jin to eliminate the Ten Attendants, a group of influential eunuch officials in the imperial court. However, He Jin was soon assassinated by the eunuchs and the capital fell into chaos. Dong Zhuo, a warlord from Liang Province (凉州), in the ensuing tussle for power, intended to place in the throne a puppet emperor. This move deteriorated the relationship between Ding and Dong and induced the latter to plot against the former. After Lü Bu was persuaded to defect and kill Ding Yuan, Zhang Liao followed him to serve under Dong Zhuo, who had become the de facto head of government. Soon, regional warlords formed a coalition against Dong Zhuo, who was therefore forced to move the capital west to Chang'an.