Bolivia–Spain relations and Antonio José de Sucre entered Peru and defeated the Spanish forces in the country. Soon afterwards, troops led by Antonio José de Sucre entered Upper Peru and fought against royalist forces. By 1825, Upper Peru was free from Spanish authority. Originally, Bolívar wanted Upper Peru to join either Peru or Argentina, however, the people of Upper Peru convinced Bolívar and Sucre to give autonomy to the territory and on 6 August 1825, an Upper Peruvian congress declared the country independent and renamed the territory "Bolivia" in honor of Simón Bolívar and named its capital "Sucre" in honor of Antonio
First Upper Peru campaign decline, mainly due to the favourable treatment of natives and the determined opposition of the church, which attacked Castelli through his secretary Bernardo Monteagudo and his public atheism. Both royalists in Lima and Saavedra in Buenos Aires compared them both with Maximilien Robespierre, leader of the Reign of Terror of the French Revolution. Castelli also abolished the mita in Upper Peru, a project that was shared by Mariano Moreno, but Moreno had been removed from the Junta by this point. Without Castelli being in Buenos Aires to mediate between them, the disputes between Moreno and Saavedra had worsened. The Junta