He studied law at the University of Bologna and became canon of the cathedral chapter of Parma. Pope Nicholas III in the consistory of March 12, 1278 named him Cardinal Priest of SS. XII Apostoli. He served several times as papal legate in Spain and in the Kingdom of Sicily.
Pope Martin IV promoted him to the suburbicarian see of Sabina on April 12, 1281. Dean of the Sacred College of Cardinals from December 1297. He was also the first archpriest of the patriarchal Lateran Basilica.