Under a Ministerial decision, he was assigned as a colonel in the Foreign Regiment in Mexico () and became superior commander of Veracruz () and the Hot Lands from 14 June 1863 to 26 February 1864. From 20 June 1865 he was assigned to the command of the subdivision of Monterrey (), including the States of Cacahuiel and Leon ().