 While living in Rome, he was named by Pope Clement XIV as President of the Pontifical University of Ferrara from 1763 to 1781.He was an avid collector of books, artworks, and antiquities; and donated his collection to institutions in the city.On February 14, 1785 he was elevated to cardinal by Pope Pius VI.