Xu Wen (徐溫) (862 – November 20, 927), courtesy name Dunmei (敦美), formally Prince Zhongwu of Qi (齊忠武王), later further posthumously honored Emperor Wu (武皇帝) with the temple name Yizu (義祖) by his adoptive son Xu Zhigao after Xu Zhigao founded the state of Southern Tang, was a major general and regent of the Chinese Five Dynasties and Ten Kingdoms period state Wu. He took over the reins of the Wu state (then also known as Hongnong) after assassinating, with his colleague Zhang Hao, Yang Wo the first Prince of Hongnong and then killing Zhang, and was in essence the decision-maker throughout the reign of Yang Wo's brother and successor Yang Longyan and the first part of the reign of Yang Longyan's brother and successor Yang Pu. After his death, Xu Zhigao would inherit his position as regent, eventually seizing the Wu throne and establishing Southern Tang.
Xu Wen was born in 862, during the reign of Emperor Yizong of Tang. HIs family was from Qushan (朐山, in modern Lianyungang, Jiangsu). When he was young, he was a salt privateer. His parents' names were lost to history, although it is known that his mother was surnamed Zhou. At some point, he became a soldier under Yang Xingmi, who was then the prefect of Lu Prefecture (廬州, in modern Hefei, Anhui).
Xu Wen initially did not distinguish himself in Yang Xingmi's campaigns — as while there were 36 officers under Yang who were considered to have distinguished themselves, led by Liu Wei (劉威) and Tao Ya (陶雅), Xu was not among them. His first known act while serving under Yang was in 889, during Yang's lengthy struggle against Sun Ru for the control of Huainan Circuit (淮南, headquartered in modern Yangzhou, Jiangsu), when Yang captured Xuan Prefecture (宣州, in modern Xuancheng, Anhui) after a lengthy siege. It was said that the other officers all hunted for spoils in gold and silk, but only Xu found a food supply, and had porridge cooked and distributed to the hungry people of Xuan Prefecture.