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. This accusation led to a long court-martial which finally acquitted him and he remained in the army.