Wen Yanbo (23 October 1006 – 16 June 1097[1]), courtesy name Kuanfu, was a scholar-official of the Song dynasty who served four emperors over more than five decades.
After passing the imperial examination in 1027, Wen Yanbo first became the magistrate of Yicheng County.
Wen Yanbo suggested to Emperor Renzong that marshals in the front line should be given independent authorities to discipline subordinate generals for desertion and cowardice.
General Liu Ping (劉平) went to reinforce the city, but was ambushed and trapped in a hill.
Eventually Pang accepted Wen's findings and executed both Huang and Liu's servant.