He was appointed titular archbishop of Philippi on 15 December 1828 by Pope Leo XII. He was consecrated on 21 December by Cardinal Carlo Odescalchi, assisted by Lorenzo Mattei, and by Paolo Agosto Foscolo. He was appointed Nuncio to the Grand Duchy of Tuscany on 16 January 1829. He remained in Tuscany until he was appointed as Prefect of the Apostolic Palace on 2 July 1832 by Pope Gregory XVI.
He was created cardinal, but only in pectore, in the consistory of 23 June 1834 and publicly proclaimed on 11 July 1836, becoming Cardinal-Priest of San Silvestro in Capite. He was appointed Prefect of the Sacred Congregation of Bishops and Regulars on 6 July 1839. He was archpriest of the Basilica di Santa Maria Maggiore, from 1845 to 1867. He participated in the conclave of 1846 that elected Pope Pius IX. He opted for the order of bishops, taking the suburbicarian see of Albano, on 20 April 1849. Pope Gregory appointed him as Secretary of the Congregation of the Roman and Universal Inquisition in 1860. He served as Archpriest of the patriarchal Lateran basilica, from 1867 until his death. He also served as Dean of the Sacred College of Cardinals from 1870 until his death in 1876.
|Cardinal-Bishop of Ostia|
| Succeeded by|
Camillo di Pietro