1825 document declaring Bolivia's independence from Spain
Bolivia's independence was definitively proclaimed on 6 August 1825 at a congress held in Chuquisaca.
Battle of Junín.
While the Gran Colombian troops disembarked in the port of Callao under the command of General Antonio José de Sucre, General Andrés de Santa Cruz—who until a short time before had been fighting in the ranks of the "realistas" (Spanish loyalists)—arrived to share the libertarian ideas of José de San Martín and was sent to augment Sucre's troops, beginning their march toward Upper Peru. In August 1823, they entered the city of La Paz and, forced to wage battle, Santa Cruz emerged victorious from the Battle of Zepita on 25 August 1823 against one of General Valdez's divisions.
Between the years of 1822 and 1823, the situation in Peru had turned chaotic: the armies had been defeated by the "realistas" and politics had plunged into anarchy. It was with these lamentable conditions that Simón Bolívar was confronted when on 1 September 1823 he arrived in Lima. The congress gave him charge of the military.
The situation could not have been more sober for the patriots. The independence of Peru was not assured, and on 29 February 1824 the "realistas" once again succeeded in occupying Lima. But this time, the political upheavals taking place in Spain spelled the final disintegration of the Spanish troops in America.
General Pedro Antonio Olañeta, a recalcitrant absolute monarchist, rebelled against the viceroy La Serna (who himself had liberal and constitutionalist tendencies) because he attributed to him the desire to separate from the monarchy and liberate Peru from the absolute rule that Olañeta wanted to impose.
Bolívar met the divided "realistas" and quickly organized an army made up of Colombians, Argentines, and Peruvians. With this army, on 6 August 1824 he defeated the Spanish Army led by General José de Canterac and Colonel Manuel Isidoro Suárez on the fields of Junín. This victory represented above all the first step to the final triumph in the Battle of Ayacucho. The Spanish commanders—Canterac, Váldés, and de la Serna—reassembled in Cuzco and decided to reorganize their forces and flee before the victors of Junín.
Battle of Ayacucho and the Arrival of Sucre in Upper Peru.
Charged by Bolívar, Sucre decided to continue his military campaign in Peru. On 9 December 1824, the independents triumphed in a spectacular victory on the plain of Ayacucho. The "Independence of Peru and America" was recognized with the capitulation of the viceroy La Serna. In response to the victory won in Ayacucho, he was later promoted, at the request of the Peruvian Congress, to Marshal and as General in Chief by the Colombian legislature. Bolívar later assigned him the mission to liberate Upper Peru and install a responsible independent national government. Besides, his role was limited to giving an appearance of legality to the process that Upper Peruvians themselves had begun already. But for the Spanish military personnel in Upper Peru, it was too little too late, as since 1815 (and the War of the Republiquetas in certain parts of Upper Peru), all out guerilla warfare had raged in this part of the continent, with hostilities esclatating since 1821.
In Cochabamba on January 16, a cavalry troop of American Dragoons rose up in rebellion. Colonel José Martínez arrested officials and the governor and then arrived to capture the First Battalion, Infantry Regiment Fernando VII's barracks, convincing the regiment to switch sides. He then asked the Santa Victoria cavalry squadron to stand down at once, leaving the city's entire garrison of 800 men in the hands of the independents. He appointed Mariano Guzmán as governor and before his own resignation, appointed Colonel Saturnino Sánchez, and then swore independence.
Lieutenant Colonel Pedro Arraya and troopers from the Santa Victoria and American Dragoons cavalry squadrons went to Chayanta, where they also pledged their support to the Patriot cause in La Paz.
In Vallegrande, the Second Battalion of the Infantry Regiment Fernando VII (with 200 men) also rebelled, deposing Brigadier General Francisco Javier Aguilera on 26 January. Colonel José Manuel Mercado occupied Santa Cruz de la Sierra on 14 February. Mojos and Chiquitos joined in the rebellion, increasing the ranks of Spanish soldiers who changed their loyalties to the independence movement. As a consequence of these actions, Olañeta abandoned La Paz on 22 January, heading for Potosí.
On 29 January 1825, General José Miguel Lanza (coming from nearby rural zones known as the "Republiqueta de Ayopaya") took the city of La Paz and declared the independence of the provinces of Upper Peru. Lanza was named the first president of Upper Peru. On 6 February, Field Marshal Sucre - at the head of the Liberation Army - crossed the Desaguadero River, which was the border with Peru, and entered La Paz the next day.
In Chuquisaca, the "Dragones de la Frontera" Battalion of Colonel Francisco López defected to the independence cause and on 22 February officially declared the city independent.
Royalist general Pedro Antonio Olañeta stayed in Potosí, where he was welcomed late in the month by soldiers of the "Union" Infantry Battalion coming from Puno under the command of colonel José María Valdez. Olañeta then summoned a War Council, which agreed to continue the resistance in the name of Ferdinand VII. Next, Olañeta distributed his troops between Cotagaita fortress with the "Chichas" Battalion, commanded by colonel l Carlos de Medinacelli, while Valdez was sent to Chuquisaca with the "Union" Infantry Battalion and loyalist militias, and Olañeta himself marched toward Vitichi, with 60,000 pieces of gold from the Coin House in Potosí. Olañeta abandoned Potosí on 28 March, just before the independent vanguard led by Arralla advanced to liberate the rich mining town.
In spite the governor of Salta's (José Antionio Álvarez de Arenales) final orders not to advance, Colonel José María Pérez de Urdininea and 200 dragoons, together with the advance party of the independence forces, surprised the Tupiza garrison on 23 March. At this point, the majority of royalist troops of Upper Peru refused to continue fighting against the powerful army of Sucre and switched allegiances.
Colonel Medinacelli and 300 soldiers rebelled against Olañeta on 1 April, the two meeting the next day in the Battle of Tumusla, which culminated with the death of Olañeta. Diverse sources deny the existence of such a battle, arguing that Olañeta died of a single, self-inflicted gunshot. A few days later, on April 7, general José Mario Valdez surrendered in Chequelte to general Urdininea, putting an end to the war in Upper Peru and signalling victory to the local independence movement which had been active since 1811, marking thus the end of more than many years of warfare in South America and the independence of the former Spanish possessions.
On 7 April, Sucre received an official letter sent by Álvarez de Arenales from Mojo (near Tupiza), informing him of the commission he had been given by the government in Buenos Aires on 8 February to treat (negotiate) with the "realista" leaders in the provinces of Upper Peru to end the war: "...on the basis that they need to remain at complete liberty to agree on what best suits their interests and government."
Sucre arrived at Chuquisaca that April to begin the final preparations for the independence of Upper Peru. On the 25th, the Marshal arrived in the city to a huge crowd of thousands of residents and the academe.
Congress of Chuquisaca.
On 9 February 1825, Field Marshal Antonio José de Sucre and Casimiro Olañeta, a lawyer from Chiquisaca and General Olañeta's nephew, convened all the provinces of Upper Peru to gather a congress to decide the destiny of the nation. However, the destiny of the new republic was subject to three possibilities:
Even though the governments of Buenos Aires and Peru recognized this third alternative, Bolívar understood that to encourage at that moment an act of sovereignty of this nature—conspiring against the interests of Gran Colombia—as the territory of the Royal Audience of Quito could expect the same treatment as Charcas. Bolívar did not publicly undermine Sucre's authority, but did reproach him in a private letter regarding this initiative.
The General Constituent Congress of Buenos Aires, by degree on 9 May 1825, declared that "although the four departments of Upper Peru have always belonged to this state, it is the will of the general constituent congress that they remain at full liberty to decide their fate, as they believe will suit their interests and their happiness," clearing the way for the independence of Upper Peru as an independent entity.
Sucre, a little annoyed by Bolívar's criticism, after demonstrating that he was right, announced that he would obey orders but would also leave the country because he that ordered him did not share his views. To the contrary, Bolívar was in conflict with Sucre's conscience and this compromised his faith in Bolívar's word.
Declaration of Independence.
The deliberating Assembly convened anew in Chuquisaca on 9 July 1825. It concluded with the determination of the complete independence of Upper Peru, in the form of a republic, for the sovereignty of its people. Finally, the president of the Assembly - José Mariano Serrano - and a commission wrote the "Act of Independence", which bears the date 6 August 1825 in honor of the 1st anniversary of the Battle of Junín won by Bolívar in Peru, and a few days before the 16th anniversary of the events of 1809, whose introduction states as follows:
 ;templatestyles src="Template:Blockquote/styles.css" / ;"The world knows that Upper Peru has been on the American continent, the altar on which was spilled the first blood of the free and the land where the last of the tyrants lays. Today, the Upper Peruvian departments, united, protest in the face of the whole Earth its irrevocable resolution to be governed by themselves."
Independence was declared by 7 representatives from Charcas, 14 from Potosí, 12 from La Paz, 13 from Cochabamba, and 2 from Santa Cruz. This marked the formal declaration of independence of the departments of Upper Peru into a new republic and marked the formal conclusion of the long war that had marked Spanish America's independence from Spain.
Bolívar and Bolivia.
Through a decree it was determined that the new state in Upper Peru would carry the name of Republic of Bolívar, in honor of the liberator, who was designated as "Father of the Republic and Supreme Chief of State". Bolívar thanked them for these honors, but declined the presidency of the Republic, a duty he gave instead to the victor of Ayacucho, Grand Marshal Sucre, who would later be sworn in the same day as the first President of Bolivia. After some time, the subject of the name of the Young nation arose again, and a Potosian deputy named Manuel Martín Cruz offered a solution, suggesting that in the same manner which from Romulus comes Rome, from Bolívar ought to come the new nation of Bolivia.
 ;templatestyles src="Template:Blockquote/styles.css" / ;"If from Romulus, Rome; from Bolívar, it is Bolivia".
The next day, on August 7, under President Sucre's orders the Armed Forces of Bolivia were officially founded, with Sucre acting as the nation's first commander in chief of the armed forces.
By the time Bolívar got the news of the decision, he felt flattered by the young nation, but until then he hadn't accepted willingly Upper Peru's fate as an independent republic because he was worried about its future, due to Bolivia's location in the center of South America; this, according to Bolívar, would create a nation that would face many future wars, which curiously did happen. Bolívar wished that Bolivia's territory would become part of another nation, preferably Peru (given the fact that it had been part of Viceroyalty of Peru for centuries), or Argentina (since during the last decades of colonial domain it had been part of Viceroyalty of the Río de la Plata), but what deeply convinced him otherwise was the attitude of the people, who longed more for independence and now finally seen it come true. On August 18, upon his arrival in La Paz, there was a manifestation of popular rejoicing. The constituent Assembly gathered there to inform him of his assumption of the presidency. The same scene repeated when the Liberator arrived to Oruro, then to Potosí and finally to Chuquisaca, where he received full honors by Armed Forces formations as he formally took over the office of Commander in Chief, and met with Sucre and the rest of cabinet.