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. Afterwards the two advisers competed for the king's trust, until Bo Pi convinced the king to execute Wu Zixu for treason. Then, while King Fuchai waged another campaign in the state of Qi, King Goujian made a backstabbing attack on Wu, conquering it, 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.