In 1684 he became an attorney and protector of the Indians at the Audiencia of Bogotá. Thereafter he was appointed to the Council of the Indies in Spain. While he was still serving as councilor, King Philip V placed him in charge of the newly created Viceroyalty of Nuevo Reino de Granada, in 1717.
In 1684, he began his career as an attorney and protector of indigenous people at the Audiencia of Bogotá. He was later appointed to the Council of the Indies in Spain. During his time on the council, King Philip V entrusted him with overseeing the newly formed Viceroyalty of Nuevo Reino de Granada in 1717.