The Ecuadorian War of Independence was the series of risings and campaigns between 1809 and 1822 that ended Spanish rule over the Audiencia of Quito, the territory of modern Ecuador. It began with one of the earliest juntas in Spanish America, in Quito in 1809, went quiet after harsh repression, and revived when the port of Guayaquil rose in 1820. Antonio José de Sucre's victory on the slopes of the Pichincha volcano in May 1822 decided it. The result was not an independent Ecuador but union with Bolívar's Gran Colombia, from which Ecuador emerged as a separate state in 1830.
Quito under Spanish rule
For nearly three centuries Quito had been an audiencia, a high court and administrative district, first under the Viceroyalty of Peru and later under the Viceroyalty of New Granada. As elsewhere in the empire, American-born creoles resented the privileges of officials sent from Spain. When Napoleon forced Ferdinand VII off the Spanish throne in 1808 and installed his brother Joseph, the question of who should govern in the king's absence opened the door to local self-rule.
The Quito juntas, 1809–1812
On 10 August 1809 a group of Quito notables signed the act creating a Sovereign Governing Junta and removed the audiencia's president, the Count Ruiz de Castilla. Juan Pío Montúfar became its president and Bishop José Cuero y Caicedo its vice-president. The junta claimed to rule for the absent Ferdinand, and it lacked popular backing. As royalist troops approached from Guayaquil, Popayán and Pasto, its leaders handed power back.
The authorities then jailed many of those involved. On 2 August 1810 townspeople tried to free the prisoners held in the royal barracks, and the attempt ended in a massacre of the patriot leaders. Within weeks, after several days of street fighting, a second, creole-led junta took control with the president as a figurehead. In December 1811 a congress declared the whole audiencia independent, and around February 1812 it approved a constitution for a State of Quito that still left room for Ferdinand's return. Its poorly armed troops lost their offensive, and by December 1812 forces sent by the viceroy of Peru, under Juan de Sámano, had crushed the state after a battle at Ibarra.
Guayaquil rises, 1820
The cause revived eight years later in the south. On 9 October 1820 officers of the Guayaquil garrison, among them men from Peru, joined local patriots gathered by the poet José Joaquín de Olmedo and seized the port almost without bloodshed. Olmedo headed a junta that declared the Free Province of Guayaquil. Inland towns, including Riobamba, Latacunga and Ambato, declared for independence in November.
The junta's army, about 2,000 men under Luis Urdaneta, marched on Quito but was routed on 22 November 1820 at Huachi near Ambato by royalists under Francisco González. In January 1821 a patriot band was ambushed at Tanizahua, and its commander was shot and his head displayed in Quito. Guayaquil turned to the two great liberators, Simón Bolívar in the north and José de San Martín in Peru.
Sucre's campaign
Fresh from the victory at Boyacá in 1819, Bolívar sent his most trusted officer, Antonio José de Sucre, to Guayaquil in 1821 with 1,000 muskets, sabres, pistols and ammunition. In August Sucre's troops destroyed a royalist column near Yaguachi, but on 12 September 1821 the main royalist army under Field Marshal Melchor Aymerich beat him at the second battle of Huachi, where he lost about 800 men, most of them killed. A 90-day armistice signed at Babahoyo in November gave both sides time to recover.
Sucre asked San Martín for help, and a Peruvian division of some 1,400 to 1,500 men under Andrés de Santa Cruz marched north from Piura and Trujillo. Early in 1822 the combined army left the coast and climbed into the Andes, retaking Cuenca in February, skirmishing near Riobamba in April and reaching the valleys south-east of Quito by mid-May. Bolívar meanwhile pushed south from Colombia towards the royalist stronghold of Pasto.
Pichincha
On the night of 23 May 1822 Sucre led his men up the flanks of the Pichincha volcano, which towers over Quito. Rain turned the paths to mud, and by dawn they were only halfway up. On 24 May Aymerich's troops climbed to attack them, and after about three hours of fighting on the steep slopes the royalists broke. One modern count puts the patriots at about 2,970 men and the royalists at about 1,900, with some 400 royalists and 200 patriots killed. Sucre took some 1,100 soldiers and 160 officers prisoner, with 14 guns and about 1,700 muskets. Aymerich capitulated the next day. Sucre's terms were generous: the defeated men could go home, and officers kept their swords and horses.
On 29 May Quito's town council declared the territory part of Gran Colombia. Bolívar entered the city on 16 June to a hero's welcome. In July he came to Guayaquil with troops, annexed the port despite local factions that wanted autonomy or union with Peru, and there met San Martín in the famous interview of 26–27 July.
Union with Gran Colombia and separation
Independence did not bring peace. Royalist Pasto rose again in late 1822 and in 1823–1824 under Agustín Agualongo, who was executed in July 1824. As the District of the South, Ecuador supplied men and money for the Peruvian War of Independence and suffered when Peru and Gran Colombia fought over the border in 1828–1829, a war in which Guayaquil was bombarded and occupied by Peruvian forces. As Gran Colombia fell apart, Quito's leaders dissolved the union in May 1830, and a constituent assembly that met at Riobamba from August adopted a constitution in September for the new State of Ecuador, named after the equator. The Venezuelan general Juan José Flores dominated its politics for the next fifteen years.
Ecuador marks two founding dates: 10 August 1809, remembered as the first cry of independence, and 24 May 1822, the day of Pichincha. Historians still argue over the 1809 junta, which some see as a loyalist bid by the local elite for self-government rather than an anticolonial revolution.
On our maps
On our 1815 map both Quito and Guayaquil lie inside the Viceroyalty of New Granada, the Spanish unit to which the Audiencia of Quito then belonged. Our 1878 map shows both cities in Ecuador.
Key dates
- 1809Quito notables form a governing junta on 10 August and depose the audiencia's president.
- 1810Patriots held in Quito's royal barracks are killed in the massacre of 2 August.
- 1811A congress in Quito declares the whole audiencia independent in December.
- 1812The State of Quito adopts a constitution but is crushed by royalist troops by December.
- 1820Guayaquil proclaims its independence on 9 October in an almost bloodless rising.
- 1820Royalists under Francisco González rout Guayaquil's army at Huachi on 22 November.
- 1821Sucre arrives in Guayaquil with arms and supplies sent by Bolívar.
- 1821Sucre is defeated at the second battle of Huachi on 12 September, and a truce follows.
- 1822Sucre's army, reinforced by a Peruvian division, wins at Pichincha above Quito on 24 May.
- 1822Field Marshal Melchor Aymerich surrenders Quito on 25 May.
- 1822Bolívar enters Quito, then brings Guayaquil into Gran Colombia in July.
- 1830Quito's leaders leave Gran Colombia in May, and the State of Ecuador adopts a constitution in September.
From the atlas
Ecuadorian War of Independence in time and on the map
Ecuadorian War of Independence lasted from 1820 to 1823. The nearest maps from before and after are 1815 and 1878; compare them side by side.
Living through it, among others on this site: Aaron Burr (1756–1836), Adolphe Thiers (1797–1877), Adrien-Marie Legendre (1752–1833), Alessandro Volta (1745–1827), Alexander I of Russia (1777–1825), Alexis de Tocqueville (1805–1859), Andrew Jackson (1767–1845), Andrew Johnson (1808–1875), Antonio José de Sucre (1795–1830) and Antonio López de Santa Anna (1794–1876).
Other events of the same years: Little Ice Age (1303–1850), Ottoman–Persian Wars (1514–1823), Russo-Turkish wars (1568–1918), American Indian Wars (1622–1924), Sakoku (1639–1854), Fula jihads (1725–1860), Indian independence movement (1757–1947), Industrial Revolution (1760–1820), Caucasian War (1763–1864) and Xhosa Wars (1779–1879).
Next to it in time on this site: before, Peterloo Massacre (1819) and Black War (1820–1832); after, Adams–Onís Treaty (1821) and Greek War of Independence (1821–1829).
Quick answers
- When did Ecuadorian War of Independence happen?
- It began in 1820 and ended in 1823, lasting 3 years.
- Where did Ecuadorian War of Independence take place?
- Ecuador.
- How did the map change?
- Compare the atlas’s maps of 1815 and 1878 side by side.
- Why is Quito called the first cry of independence?
- On 10 August 1809 a junta of Quito's leading citizens deposed the Spanish president of the audiencia, one of the first such moves in Spanish America. Its leaders still claimed to act for the captive King Ferdinand VII, so historians debate whether it was a true independence movement. Ecuador nonetheless celebrates the date as the first cry for freedom.
- How did Guayaquil win its freedom without a battle?
- On 9 October 1820 officers of the garrison, several of them from Peru, joined local patriots summoned by the poet José Joaquín de Olmedo and took over the port almost without bloodshed. The new junta then raised an army to carry the revolution into the highlands, though that force was soon beaten.
- How large was the victory at Pichincha?
- The battle on 24 May 1822 lasted about three hours. Sucre took some 1,100 soldiers and 160 officers prisoner, along with 14 cannon and about 1,700 muskets, and the royalist commander in Quito surrendered the next day. Sucre let the defeated soldiers go home and allowed officers to keep their side arms and horses.
- What happened to Guayaquil after independence?
- Guayaquil was divided between those who wanted autonomy, those who wanted union with Peru and those who favoured Colombia. In July 1822 Bolívar arrived with his army and annexed the port to Gran Colombia, just before he met San Martín there. It stayed part of Colombia until the whole south broke away as Ecuador in 1830.