 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.He represented the University of Córdoba in various causes, as well as his uncle, Domingo Belgrano Peri.