He helped General Manuel Belgrano to organize a key victory in the Battle of Tucumán, and the following year he was mayor of the town.