 He entered the Mexican army with the rank of brigadier general and was a deputy to the Constituent Congress.He fought against Emperor Agustín de Iturbide as an adherent of the Plan de Casa Mata (December 2, 1822).The effect of the Plan de Casa Mata was the abdication of Iturbide on March 19, 1823.