The War of the Confederation was fought between 1836 and 1839 by Chile, Peruvian exiles and, on a separate front, the Argentine Confederation against the Peru–Bolivian Confederation, a union of Peru and Bolivia created by the Bolivian general Andrés de Santa Cruz. Chile feared that the new state would dominate the Pacific coast and its trade. After a failed first expedition, a Chilean army under Manuel Bulnes destroyed Santa Cruz's forces at Yungay in January 1839, and the Confederation broke apart. The war confirmed the separation of Peru and Bolivia and made Chile a leading power on the South American Pacific.
Santa Cruz's Confederation
Andrés de Santa Cruz was a veteran of the Peruvian War of Independence who had led the Peruvian division at Pichincha in 1822 and later became president of Bolivia. Peru in the 1830s was torn by rival generals. After Felipe Santiago Salaverry seized power in a coup in 1835, the constitutional president Luis José de Orbegoso allowed Santa Cruz's Bolivian army across the border, and Santa Cruz defeated Salaverry in 1836. Assemblies then created two new states, North Peru and South Peru, which were joined with Bolivia in a confederation that Santa Cruz decreed in Lima on 28 October 1836, taking the title of Supreme Protector. A congress at Tacna in 1837 gave the union its constitution.
To Chile and to the Argentine Confederation of Juan Manuel de Rosas the new union looked like a dangerous new power on their borders. Peruvian opponents of Santa Cruz, among them the former president Agustín Gamarra, took refuge abroad and later marched with the Chilean armies.
Trade, exiles and the road to war
Chile's quarrel was first about trade. Salaverry's government had signed a commercial treaty with Chile in 1835, but Orbegoso cancelled it in February 1836. Peru raised its duty on Chilean wheat steeply, Chile answered with higher duties on Peruvian sugar, and Peru taxed goods that had passed through Valparaíso so as to favour its own port of Callao. Chile's dominant minister, Diego Portales, saw the Confederation as a threat to the balance of power that underpinned Chile's prosperity.
Politics sharpened the dispute. In 1836 the exiled Chilean general Ramón Freire sailed from Peru, with some help from the Confederation, to overthrow President Joaquín Prieto. The attempt collapsed and his ship was captured in July. On the night of 21 August a Chilean force under Victorino Garrido slipped into Callao and seized three Peruvian warships. Santa Cruz arrested and then released the Chilean envoy, and negotiations followed, but Chile's demands included the dissolution of the Confederation itself, which Santa Cruz would not accept. Chile declared war at the end of December 1836. Argentina followed on 9 May 1837, fighting its own campaign on the northern frontier.
Murder of Portales and the first expedition
The war was unpopular with part of the Chilean army. On 4 June 1837 Colonel José Antonio Vidaurre mutinied at Quillota and seized Portales; two days later, on the orders of Captain Santiago Florín, Portales was shot near Valparaíso, and loyal forces crushed the mutineers. The Chilean government blamed Santa Cruz, and the killing turned the war into a national cause.
In September 1837 an expedition of roughly 2,800 to 3,300 men, Chileans and Peruvian exiles, sailed under Admiral Manuel Blanco Encalada. It landed on the southern coast of Peru in October and entered Arequipa on 12 October, but Blanco Encalada became entangled in local politics and faced a larger enemy army. Rather than fight, he signed the Treaty of Paucarpata in November, agreeing to withdraw and to return the captured ships. Back in Chile, government and public alike rejected the treaty and put the admiral on trial for treason; he was later acquitted.
Bulnes and Yungay
In July 1838 a second and larger army of about 5,400 men sailed under General Manuel Bulnes, with Gamarra and other Peruvian exiles at his side. Bulnes landed near Lima and on 21 August defeated Orbegoso's garrison at Portada de Guías, outside the capital. The allies held Lima for a few weeks and proclaimed Gamarra provisional president, but Bulnes was more interested in destroying Santa Cruz's army than in holding the capital, and early in November he marched north, with Santa Cruz following.
The decisive weeks came in January 1839. On 6 January Chilean troops, among them a detachment under the young Mapuche officer Juan Colipí, held the bridge over the Buin river against Santa Cruz's advance in an action that both sides claimed as a victory. On 12 January a Chilean squadron under Roberto Simpson defeated the Confederation's fleet off Casma, and its commander Jean Blanchet was killed, leaving Santa Cruz without command of the sea. On 20 January Bulnes attacked Santa Cruz's army in its positions around the hill of Pan de Azúcar near the town of Yungay, in the Ancash highlands. After hard fighting the Confederate army broke. Casualty figures vary, but one modern count gives the Confederates more than 2,400 killed and wounded and over 1,600 captured, against about 1,300 Chilean dead.
Collapse of the Confederation
Santa Cruz escaped to Guayaquil in Ecuador, and amid military defeat and political and economic crisis in Peru and Bolivia he resigned as president of Bolivia and as Protector. On 25 August 1839 Gamarra, now president of a reunited Peru, formally declared the Confederation dissolved, and the Chilean troops left Peru in October. Santa Cruz spent the rest of his life in exile, first in Ecuador, then as a prisoner in Chile after a failed attempt to return, and finally in Europe, where he died.
Peace did not follow at once. Fighting between Peru and Bolivia went on, and Gamarra was killed at the battle of Ingavi on 18 November 1841, and a treaty between Peru and Bolivia came only in 1842. Argentina's northern campaign had achieved little.
Legacy and debate
In Chile, Yungay became a symbol of the young nation and gave voice to a new national feeling, heard in José Zapiola's hymn to the victory. Chilean historians present the war as a defence of the country's commercial and political interests, and the outcome left Chile the leading power on the Pacific coast of South America for decades. In Peru and Bolivia judgments of Santa Cruz remain divided: some see a far-sighted statesman who tried to reunite the Andean lands of the old Viceroyalty of Peru, others a Bolivian conqueror who split Peru in two.
On our maps
Our 1815 map still shows Lima, La Paz and Santiago inside the Viceroyalty of Peru, the old Spanish unit that Santa Cruz's Confederation partly recalled. Our next map, for 1878, shows the outcome of the war: Peru, Bolivia and Chile as three separate republics.
Key dates
- 1836Andrés de Santa Cruz proclaims the Peru–Bolivian Confederation, with himself as Supreme Protector.
- 1836Ramón Freire's expedition from Peru against the Chilean government fails, and Chile captures his ship in July.
- 1836A Chilean raid on Callao in August seizes three Peruvian warships.
- 1836Chile declares war at the end of December after talks with Santa Cruz break down.
- 1837The Argentine Confederation of Juan Manuel de Rosas declares war on 9 May.
- 1837Mutinous troops seize Chile's minister Diego Portales and shoot him near Valparaíso on 6 June.
- 1837The first Chilean expedition under Blanco Encalada takes Arequipa but signs the Treaty of Paucarpata in November.
- 1838A second Chilean army of about 5,400 men under Manuel Bulnes sails for Peru in July.
- 1838Bulnes wins at Portada de Guías on 21 August and briefly occupies Lima.
- 1839The Chilean navy defeats the Confederation's fleet at Casma on 12 January.
- 1839Bulnes routs Santa Cruz at Yungay on 20 January, and Santa Cruz flees to Ecuador.
- 1839Agustín Gamarra formally dissolves the Confederation on 25 August.
From the atlas
War of the Confederation in time and on the map
War of the Confederation lasted from 1836 to 1839. The nearest maps from before and after are 1815 and 1878; compare them side by side.
Living through it, among others on this site: Abraham Lincoln (1809–1865), Ada Lovelace (1815–1852), Adolphe Thiers (1797–1877), Alexander II of Russia (1818–1881), Alexis de Tocqueville (1805–1859), Andrew Jackson (1767–1845), Andrew Johnson (1808–1875), Antonio López de Santa Anna (1794–1876), Arthur Schopenhauer (1788–1860) and Auguste Comte (1798–1857).
Other events of the same years: Little Ice Age (1303–1850), Russo-Turkish wars (1568–1918), American Indian Wars (1622–1924), Sakoku (1639–1854), Fula jihads (1725–1860), Indian independence movement (1757–1947), Caucasian War (1763–1864), Xhosa Wars (1779–1879), Australian frontier wars (1794–1899) and Underground Railroad (1800–1863).
Next to it in time on this site: before, Battle of San Jacinto (1836) and Battle of the Alamo (1836); after, Rebellions of 1837–1838 (1837–1838) and Battle of Blood River (1838).
Quick answers
- When did the War of the Confederation happen?
- It began in 1836 and ended in 1839, lasting 3 years.
- Where did the War of the Confederation take place?
- South America, Peru and Chile.
- How did the map change?
- Compare the atlas’s maps of 1815 and 1878 side by side.
- Why did Chile go to war with the Peru–Bolivian Confederation?
- Chile's leaders feared that a united Peru and Bolivia would dwarf their country and take its trade. Santa Cruz's government had cancelled a treaty favourable to Chilean trade, raised duties on Chilean wheat and taxed goods shipped through Valparaíso in order to build up Callao. The minister Diego Portales also blamed Peru for letting the exiled general Ramón Freire sail from a Peruvian port to overthrow the Chilean government.
- What was the Treaty of Paucarpata?
- It was the agreement signed near Arequipa in November 1837 by the commander of the first Chilean expedition, Manuel Blanco Encalada, who had avoided battle with a larger enemy. Chile was to withdraw its troops and return the captured ships, effectively accepting the Confederation. The Chilean government and public rejected it, Blanco Encalada was tried for treason and later acquitted, and a second army was sent.
- How many men fought at Yungay?
- Bulnes commanded roughly 4,000 to 4,500 Chileans plus some 800 to 1,000 Peruvian allies, against a somewhat larger Confederate army. One modern count gives Confederate losses as more than 2,400 killed and wounded and over 1,600 prisoners, against about 1,300 Chilean dead and 400 wounded, though these figures are disputed.
- Did Chile kill Portales or did Santa Cruz?
- Portales was seized on 4 June 1837 by mutinous Chilean troops under Colonel José Antonio Vidaurre, who opposed the war, and shot two days later on the orders of Captain Santiago Florín. The Chilean government nonetheless believed Santa Cruz was behind the plot, and the murder turned public opinion firmly in favour of the war.