He hailed from Zizhong 資中 (modern Ziyang 資陽, Sichuan) and was detected by the regional inspector (cishi 刺史) Wang Xiang 王襄 who had him composed poems in praise of Emperor Xuan 漢宣帝 (r. 74-49 BCE). The emperor invited him to the court and treated him with greatest respect. Wang Bao was appointed Grand Master of Remonstrance (jian dafu 諫大夫).
His poems filled a book of 16-juan length. He died on his way back to Sichuan.