In 1673, he became chaplain of the Colegio de San Bartolomé at the University of Salamanca.
In 1681, Charles II of Spain awarded him the Order of Calatrava and appointed him to the Consejo de Órdenes.
Following the death of Charles II in November 1700, he served on the board that governed Spain.
In 1701, Philip V of Spain relieved him of the post of Grand Inquisitor, but because of a jurisdictional dispute between Madrid and the Holy See, and the absence of Philip V because of the War of the Spanish Succession, he continued to hold office until 1704.
He fled to exile in Avignon, where he remained until 1713, when he was allowed to return to Spain to resume his duties as Bishop of Segovia.