He studied for the law Colegio Gregoriano in Mexico City, graduating with good marks, and was admitted to the bar in 1844.
He pursued legal studies at Colegio Gregoriano in Mexico City, achieving a successful academic record, and subsequently obtained his bar license in 1844.