In 1298 Ranieri was instrumental in the destruction of the city of Palestrina on the orders of Pope Boniface VIII, following the anti-papal revolt of the Colonna family. He was then made a cardinal in December of that year, and in 1300 until his death was the Camerlengo of the Holy Roman Church.