Mailiao Township () is a rural township in northwestern Yunlin County, Taiwan.
With a population of 49,298 people as of February 2023, Mailiao has an area of 80.1668 km<sup>2</sup>.
Maifong, Maijin, Wayao, Xinghua, Haifeng, Houan, Zhongxing, Sancheng, Lunhou, Qiaotou, Xinji, Shicuo and Leicuo Village.
The township's chief industry is the Formosa Mailiao Refinery, an oil refinery that processes of crude oil per day. The refinery exports it goods via the township's harbor.