 He also learned about the 1782 Rebellion of Túpac Amaru II and the oppression of the indigenous peoples, which influenced his actions in his future Upper Peru campaign.Before returning to Buenos Aires, he visited Potosí and witnessed the use of slave labor in the mines.Castelli returned to Buenos Aires and established a legal firm in his family home.