In 1797, he moved to Buenos Aires where he contributed in the defense of the port of Buenos Aires during the British invasions of the Río de la Plata.
He made his way to Buenos Aires in 1797 and played a role in defending the port of Buenos Aires against the British attacks on the Río de la Plata region.