PLEnlist

Battle of Yungay, 1839: the day the Peru-Bolivian Confederation fell

War of the Confederation · 20 January 1839 · United Restoration Army vs Peru-Bolivian Confederation · ~5 min read · Updated October 2026

Next anniversary: 20 January 2027, the 188th anniversary 20 January in history ›

Watercolor of a steep conical hill in a mountain valley with lines of troops attacking up its slopes and columns of infantry and cavalry on the plain below, with pale mountain ranges behind.

“Ataque del Pan de Azúcar”, watercolor view from the Plan de la batalla de Yungay, 1839, Library of Congress, via Wikimedia Commons, public domain.

At a glance

United Restoration Army (Chile and Peruvian restorers)General Manuel Bulnes; Colonel Jerónimo Valenzuela; Colonel Juan Antonio Ugarteche
vs
Peru-Bolivian ConfederationProtector Andrés de Santa Cruz
Date
20 January 1839, from 10 a.m. to 4 p.m. by Bulnes's report
Location
Yungay, in the highlands of northern Peru
War
War of the Confederation, 1836 to 1839
Opening action
The storming of the Pan de Azúcar hill by four companies of light infantry
Outcome
Decisive victory for the United Restoration Army; Santa Cruz fled and the Confederation was dissolved
Quick answer

What happened at the Battle of Yungay?

On 20 January 1839, at Yungay in northern Peru, the United Restoration Army of Chileans and Peruvian opponents of Andrés de Santa Cruz, led by the Chilean general Manuel Bulnes, defeated the army of the Peru-Bolivian Confederation. The fight began with the storming of the Pan de Azúcar hill and, by Bulnes's report, lasted six hours. Santa Cruz was ruined politically, and the Confederation he had created in 1836 was dissolved.1

Yungay is little known outside the Andes, but it decided the shape of three countries. The battle ended a three year experiment that had joined Peru and Bolivia under one ruler, and in Chile it became a founding legend, still marked every 20 January.2

Santa Cruz's confederation

Peru won its independence in 1824 and Bolivia in 1825, and the idea of uniting them was in the air from the start, the historian Joaquín Fernández of Finis Terrae University told BioBioChile. In 1836 Marshal Andrés de Santa Cruz, a former lieutenant of Simón Bolívar who, in Fernández's words, had a Peruvian father and a Bolivian mother, made it real. Taking advantage of Peru's civil wars, he created a confederation of three states, Bolivia, South Peru and North Peru, each with its own government but all under him as Protector.3

It was never easy. According to Fernández, highland regions of Peru such as Arequipa and Cusco welcomed it as a counterweight to Lima, while the elites of northern Peru saw it as a loss of power. In his account Santa Cruz chose the president of each state himself, and his ten year mandate with the right to reelection worried his own people.4

Why Chile went to war

Chile watched with suspicion. Fernández lists unpaid Peruvian debts from the wars of independence, tariff disputes between Chilean and Peruvian ports, and the fear that a powerful new state would keep expanding. Santa Cruz's support for Chilean exiles under Ramón Freire who tried to seize power deepened the alarm, and gave the minister Diego Portales a free hand.5

Chile allied with the Peruvian restorers, who wanted to undo Santa Cruz's union. A first expedition under Admiral Manuel Blanco Encalada ended in the Treaty of Paucarpata with Santa Cruz, which outraged the Chilean government. Portales did not want peace with the Confederation; he wanted it destroyed. War was unpopular even in Chile, and in June 1837 Portales himself was killed by mutinous troops of the garrison at Quillota. A second expedition under General Manuel Bulnes followed.6

The Pan de Azúcar

After several campaigns in Peru, Bulnes's United Restoration Army met Santa Cruz's army at Yungay, in the highlands of northern Peru, on 20 January 1839.7

The battle opened with an attack on the Pan de Azúcar, a hill held by the Confederation's troops that Chile's Museo Histórico Militar describes as a position considered impregnable. According to UNOFAR, a column of four companies of light infantry, one each from the Carampangue, Santiago and Valparaíso battalions and the sixth company of the Cazadores del Perú, went up under the Carampangue's commander, Colonel Jerónimo Valenzuela, with the Peruvian colonel Juan Antonio Ugarteche as his second. After a hard fight they reached the top and drove off the defenders. The watercolor at the top of this page, drawn for a plan of the battle in 1839, shows that attack.8

Bulnes's own report, quoted by the Chilean retired officers' association UNOFAR, called it one of the most bitter and bloody battles ever seen in America, fought from ten in the morning to four in the afternoon. The enemy, he wrote, defended themselves with extraordinary tenacity, but nothing could resist the Army.9

A sergeant named Candelaria

Among those who won fame that day was Candelaria Pérez, a cantinera, or sutler, with the Carampangue battalion. UNOFAR calls her the first woman whose service in the army and in a war is recorded in some detail; she was given the rank of second lieutenant for her services. Fernández names her, together with the indigenous lieutenant Juan Lorenzo Colipí, as new national heroes from groups that had been outside public life, women and indigenous people.10

The end of the Confederation

Yungay broke Santa Cruz. Politically defeated, he fled, by Fernández's account to Lima and then Arequipa, and went into exile in Ecuador; Fernández adds that he was later captured there and banished by Chile, Peru and Bolivia alike. He died in France in 1865. The Confederation was dissolved. Fernández sees Bolivia gravely weakened and left in conflict with Peru, and Chile the winner of the commercial rivalry between the ports.11

In Chile the war changed patriotism. The song of Yungay and the Day of the Chilean Roto, the common soldier, came out of it. Bulnes became a national hero in his lifetime and in 1841 was elected president.12

Notes

A number in the text points to a note; each note names the works that paragraph draws on, listed in full under Sources.

  1. Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”; BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”. ↩
  2. Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”; BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”. ↩
  3. BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “Santa Cruz, Andrés de (1792-1865)”; Encyclopedia of Latin American History and Culture, “Peru-Bolivia Confederation”. ↩
  4. BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “Peru-Bolivia Confederation”. ↩
  5. BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “War of the Peru-Bolivia Confederation”. ↩
  6. Encyclopedia of Latin American History and Culture, “War of the Peru-Bolivia Confederation”; BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “Portales Palazuelos, Diego José Pedro Víctor (1793-1837)”; Encyclopedia of Latin American History and Culture, “Bulnes Prieto, Manuel (1799-1866)”. ↩
  7. Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”; BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “Yungay, Battle of”. ↩
  8. Museo Histórico Militar de Chile, “Batalla de Yungay - 20 enero 1839”; Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”. ↩
  9. Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”. ↩
  10. Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”; BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”. ↩
  11. BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “Santa Cruz, Andrés de (1792-1865)”; Encyclopedia of Latin American History and Culture, “Peru-Bolivia Confederation”. ↩
  12. Unión de Oficiales en Retiro de la Defensa Nacional, “Batalla de Yungay (20 de enero de 1839). Día del Roto Chileno”; BioBioChile, “La vez que Perú y Bolivia fueron un solo país y Chile lo disolvió”; Encyclopedia of Latin American History and Culture, “Bulnes Prieto, Manuel (1799-1866)”. ↩

Sources

Frequently asked questions

When was the Battle of Yungay?

On 20 January 1839. According to Bulnes's report the fighting lasted from 10 a.m. to 4 p.m.

Who fought at Yungay?

The United Restoration Army, made up of Chilean troops and Peruvian opponents of Santa Cruz under the Chilean general Manuel Bulnes, against the army of the Peru-Bolivian Confederation led by its Protector, Andrés de Santa Cruz.

Why is Yungay important?

It ended the War of the Confederation. After the defeat Santa Cruz fled and the Peru-Bolivian Confederation was dissolved, leaving Peru and Bolivia as separate states.

What was the Pan de Azúcar?

A hill held by the Confederation's troops. Its capture by four companies of light infantry under Colonel Jerónimo Valenzuela opened the battle.

What is the Day of the Chilean Roto?

A Chilean commemoration on 20 January, the anniversary of Yungay, honoring the common soldier. It grew out of the patriotic songs and symbols that followed the victory.

Battle honours of your homeland

The turning points of history

Marathon, Gaugamela, Cannae, Constantinople, Waterloo, Stalingrad: the days the world changed course.

Based on your country, which we do not store · why? ·

Storm the Pan de Azúcar

Echoes of Battle brings the great battles of history to life, scene by scene on the real map. Enlist below and we will send word to your inbox the day it launches.

Or supply the campaign on Ko-fi ›