At Villa Imperial, one of the richest cities of Upper Peru, an open cabildo calls Goyeneche to withdraw from their territory, which he obeys as he did not have military strength to prevail. The Bishop of La Paz, Remigio La Santa y Ortega, flees with him. Castelli is received in Potosí, where he required an oath of allegiance to the Junta and the surrender of the royalist generals Francisco de Paula Sanz and José de Córdoba y Rojas. He arranged that the operation to capture Vicente Nieto was carried out exclusively by the surviving patricians at the mines of Potosi, who had been incorporated with honors to the Army of the North. Sanz, Nieto and Córdoba were executed at the Plaza of Potosí; but Nieto claimed to die happy because it was under the Spanish flag. Goyeneche and Ortega, on the other hand, were safe on royalist land. Bernardo Monteagudo, inmate at the Jail of the Court of Chuquisaca for his participation in the revolution of 1809, escaped to join the ranks of the army. Castelli, who already knew the background of Monteagudo, appointed him his secretary.