In 1785 he was appointed as a military commander in Minas, Uruguay, a position he held until 1790. He served in the veteran corps of the Regimiento de Voluntarios de Córdoba during the English Invasions of the Río de la Plata. After the May Revolution he went on to serve under the orders of the Primera Junta, supporting the emancipatory cause until his death.