 In 1807, he traveled to Spain to seek his habilitation, since his status as a child born out of wedlock prohibited his promotion to the higher levels of the ecclesiastical hierarchy.He returned to New Spain in the position of vicar general.In 1810, the Regency (the Spanish government fighting the French invasion) named him bishop-elect of Michoacán.