Viceroyalty of the Río de la Plata
After completing his studies he was sent to Upper Peru, where he was part of the Chuquisaca Revolution of May 25, 1809, first movement against Spanish rule held in the Viceroyalty of the Río de la Plata.