Zhang Wen (died 5 November 191), courtesy name Boshen, was a Chinese official and military general of the Eastern Han dynasty. Zhang held prime ministerial office during the reign of Emperor Ling of Han, serving as Grand Excellency of Works from 184 to 185 and Grand Commandant from 186 to 187. Zhang oversaw the dynasty's military response to the Liang Province Rebellion from 185 to 186, supervising the future warlords Dong Zhuo and Sun Jian. After Dong seized control of the Eastern Han court in 189 and relocated it from Luoyang to Chang'an, Zhang continued to serve in ministerial office while conspiring against Dong. He was executed in November 191 at Dong's order.