 His entire royalist military career was with this unit, where he reached the rank of brigadier.He fought the insurgents until 1821, when he joined the Plan of Iguala.He was promoted to general of division.