 On May 15, 1739, he was appointed Prefect of the Sacred Congregation of Religious Immunity.He participated in the conclave of 1740 which elected Pope Benedict XIV.On September 15, 1740, he resigned as Bishop of Osimo e Cingoli with the right to name his successor.