 He fought in the First British Invasion with the rank of lieutenant, and after his participation in the Second Invasion, having distinguished himself in the defense of the Colegio de San Carlos, was promoted to captain.He took part on the Buenos Aires Cabildo of May 22, 1810 and after the revolution he fought at the battles of Suipacha and Huaqui.After this latter battle he was accused of not joining with the 1,500 men under his command, while he was doing military exercises nearby.