He played a decisive role in the crucial Battle of Tucumán fought in 1812 against the royalists, and was made governor of his province.