His grandfather, Bo Zhouli, who was an official in the state of Chu, was executed, and Bo Pi fled to Wu, where he served as an adviser to the king of Wu. During a war with the state of Yue, in which Wu had the upper hand, Bo Pi was corrupted by lavish gifts from King Goujian of Yue. Bo Pi influenced King Fuchai of Wu to make peace with the state of Yue despite objections from another advisor of King Fuchai, Wu Zixu, who warned of a possible future attack by Yue. During Goujian's captivity in the state of Wu as a slave, he continued to bribe Bo Pi; this contributed to Goujian's return to Yue after three years. Meanwhile, the two advisers competed for the king's trust, until Bo Pi convinced Fuchai to execute Wu Zixu for treason. With Wu Zixu's death, Wu weakened as Fuchai refused to listen to good counsel. In contrast, Yue was growing stronger, with Wen Zhong and Fan Li as Goujian's advisors.
Ten years after Goujian was allowed to return to Yue, while King Fuchai waged another campaign in the state of Qi, King Goujian made a backstabbing attack on Wu. Due to years of neglect, Wu fell easily, just as Wu Zixu had warned. Bo Pi was executed by King Goujian for disloyalty to the former King Fuchai and, ironically, for accepting gifts from foreign rulers.