 Castelli, who already knew Monteagudo's background, appointed him his secretary.Castelli set up his government in Chuquisaca, where he presided over the change of regime for the entire region.He planned the reorganization of the Mines of Potosi, and a reform at the University of Charcas.