 He also became examiner ("calficador") for the Supreme Council of the Inquisition.On November 21, 1701, he was named during the papacy of Pope Clement XI as Bishop of the Diocese of Nicaragua and consecrated in 1703 by Juan de Argüelles, Bishop of Panamá.Continuing his ecclesiastical advancement, he was appointed by Pope Clement XI as bishop of La Paz, Bolivia on May 14, 1708, by Pope Clement XI as Archbishop of the Archdiocese of La Plata o Charcas on March 21, 1714, and finally by Pope Innocent XIII as archbishop of Lima on May 12, 1723.