 He studied theology at the University of Alcalá de Henares, where he was later professor of law.He also taught at the University of Sigüenza.In 1689 he was appointed bishop of Panama and consecrated by Miguel Antonio de Benavides y Piedrola, Bishop of Cartagena.