Peru is by far the bigger of the two: it covers 1,285,216 km², about four and a half times Ecuador's 283,561 km², and it had roughly 34.4 million people in 2023 against Ecuador's 17.5 million. Peru is also somewhat richer, with a GDP per capita of about $10,960 against Ecuador's $7,575 (IMF, 2026 estimates). Peru's capital is Lima, on the Pacific coast; Ecuador's is Quito, 2,850 metres up in the Andes. Spanish is the main language of both, with Quechua (Kichwa in Ecuador) spoken widely in the highlands, and Peru's 1993 constitution also makes Quechua and other Indigenous languages official in the areas where they predominate. The neighbours share the Andes, the Pacific and the upper Amazon, and for most of the last five centuries their histories have run in parallel, sometimes in step and sometimes at war.
| Ecuador | Peru | |
|---|---|---|
| Area | 283,561 km² | 1,285,216 km² |
| Population (2023 est.) | about 17.5 million | about 34.4 million |
| GDP per capita (IMF, 2026) | $7,575 | $10,960 |
| Capital | Quito | Lima |
| Highest point | Chimborazo, 6,263 m | Huascarán Sur, 6,768 m |
| Currency | US dollar (since 2000) | Peruvian sol |
| Independence completed | 1822 (from Spain), 1830 (from Gran Colombia) | 1824 (Battle of Ayacucho) |
Two Halves of the Inca Empire, 1463–1533
Before either country existed, both were one state. The Inca rulers Topa Inca Yupanqui and Huayna Capac spent two generations absorbing the highland confederations of what is now Ecuador, including the Quitu around Quito and the Cañari around Cuenca, and highland Ecuador became part of the empire in 1463. Quito was made the capital of the northern region, while Cusco, in today's Peru, remained the imperial centre. The coast and the Amazon lowlands of Ecuador were never fully conquered; some peoples there, such as the Cayapas, resisted both Inca and Spanish rule.
That north–south split shaped the empire's collapse. When Huayna Capac and his heir died of a European disease that reached the region ahead of the Spaniards, his sons Atahualpa and Huáscar fought a civil war. Atahualpa, backed by the northern army based around Quito, won and marched south. He was still consolidating power when Francisco Pizarro's small force seized him at Cajamarca, in northern Peru, on 16 November 1532. Although a room was filled with gold for his release, the Spaniards executed him after a mock trial, and both countries now count Atahualpa, the northern prince captured in the south, as part of their story.
Lima's Viceroyalty and Quito's Audiencia
Spanish rule set up the first real divergence. Pizarro founded Lima in January 1535 as the "City of Kings", and on 20 November 1542 Charles I created the Viceroyalty of Peru, governed from Lima and covering most of Spanish South America. Quito had been refounded on its present site on 6 December 1534 by Sebastián de Benalcázar. In 1563 Philip II made it the seat of the Real Audiencia of Quito, a court and administrative district that in practice ran its own affairs because the viceroy was too far away.
Lima became a capital of empire, rich from the silver of the Andes, while Quito was a provincial seat. In 1717, and permanently from 1739, the Audiencia of Quito was moved into the new Viceroyalty of New Granada, governed from Bogotá, which pulled Ecuador's orbit north toward Colombia, while the Real Cédula of 1802 later detached the Amazon government of Maynas from Quito and attached it to the Viceroyalty of Peru, a decree the two countries would argue over for two centuries. The colonial centres of both cities survive: Quito's historic centre was among the first sites UNESCO inscribed on its World Heritage List, in 1978, and Lima's historic centre followed in 1988.
Pichincha 1822 and Ayacucho 1824
Quito moved first. On 10 August 1809 a junta in the city declared self-rule, one of the earliest such declarations in Spanish America, though it was crushed. Peru, the royalist stronghold, moved last. José de San Martín declared Peruvian independence in Lima on 28 July 1821, yet Spanish armies still held much of the highlands.
The two campaigns then met. Antonio José de Sucre, one of Simón Bolívar's generals, crossed the Andes from Guayaquil, and on 9 February 1822 at Saraguro he was joined by the 1,500-strong Peruvian Division under Andrés de Santa Cruz, the contingent San Martín had promised. Together they won the Battle of Pichincha on 24 May 1822, fought at about 3,500 metres on the volcano above Quito. Ecuador was then joined to Gran Colombia. Two years later the debt was returned: Bolívar and Sucre led the campaign into Peru, and Sucre destroyed the last large royalist army at Ayacucho on 9 December 1824. Ecuador left Gran Colombia and became a separate republic in 1830; Spain did not formally recognise Peru until 1879.
Guano Money in Peru, Cacao Money in Ecuador
The 19th century gave each country an export boom, and each boom ended badly. Peru's came first. Between 1845 and 1866 it held a near monopoly on guano, seabird droppings mined from offshore islands and sold as fertiliser. The revenue let the government repay its foreign debt, but historians call it a "fallacious prosperity". Then came the War of the Pacific (1879–1884), in which Chile defeated Peru and Bolivia. By the Treaty of Ancón in 1883 Peru gave up the nitrate-rich Department of Tarapacá.
Ecuador's boom was cacao, grown on the coastal plain around Guayaquil. Production rose from 6.5 million to 18 million kilograms between 1852 and 1890, and the coastal export interests around Guayaquil were closely tied to the Liberals, whose revolution of 1895 brought Eloy Alfaro to power. Alfaro separated church and state, legalised civil marriage and divorce and completed the railway between Guayaquil and Quito. In the 1920s disease and foreign competition wrecked the cacao trade. The pattern of a coast-versus-highlands rivalry, Guayaquil against Quito, still runs through Ecuadorian politics; in Peru the equivalent divide is Lima against the Andean south.
From Tarqui to the Cenepa: 170 Years of Border War
The history the two countries share most is a quarrel over where one ends and the other begins, above all in the Amazon basin. It began before Ecuador was even independent. In 1828 Peru's president, José de La Mar, invaded the south of Gran Colombia, and his army was beaten by Sucre at the Battle of Tarqui, near Cuenca, on 27 February 1829. Treaties followed, but each side read the colonial decrees of 1563 and 1802 differently, and Ecuador claimed Tumbes, Jaén and Maynas as its own.
In July 1941 the dispute became a full war. Peru occupied Ecuador's El Oro province, parts of Loja and the disputed Amazon lands, and the Rio de Janeiro Protocol of 29 January 1942, guaranteed by Argentina, Brazil, Chile and the United States, drew a border largely on Peru's terms. Demarcation stalled in the Cordillera del Cóndor, where aerial surveys showed the Cenepa River was much longer than the treaty's drafters had assumed; in 1953 Ecuador called the protocol impossible to implement there, and on 29 September 1960 President José María Velasco Ibarra declared it null and void. Fighting broke out there again in January and February 1981, in the Paquisha War, and again from 26 January to 28 February 1995 in the Cenepa War, centred on an outpost Ecuadorians call Tiwintza and Peruvians call Tiwinza.
The Brasília Presidential Act of 26 October 1998 finally settled it. The guarantors ruled that the border in the unmarked zone followed the line of the Cordillera del Cóndor, as Peru had claimed since the 1940s. Peru's sovereignty over Tiwinza was confirmed, but Ecuador received one square kilometre there as private, non-sovereign property for commemoration. The last of 30 border markers went in during May 1999. At the signing, US President Bill Clinton called the dispute the last and longest-running source of armed international conflict in the Western Hemisphere. Ecuador now borders only Peru and Colombia, as the list of countries that border Ecuador shows.
Velasco's Land Reform, Ecuador's Oil and the Dollar
In the 20th century both countries went through military rule, but the soldiers wanted different things. In Peru, General Juan Velasco Alvarado overthrew President Fernando Belaúnde in 1968 after a scandal over an oil contract with the International Petroleum Company. Six days after the coup he expropriated the company's oil fields at Talara, and his government went on to carry out a sweeping agrarian reform and nationalise industries from fisheries to mining, before General Francisco Morales Bermúdez removed him in 1975. Civilian rule returned in 1980, the same year the Shining Path insurgency began its war in the highlands. Alberto Fujimori, president from 1990 to 2000, dissolved Congress in a self-coup on 5 April 1992; that September the capture of Shining Path's leader, Abimael Guzmán, practically destroyed the organisation, though his decade in power is also remembered for human rights violations.
Ecuador's military took power in 1972 just as oil started to flow from the Amazon. Between 1972 and 1979 the government budget grew by about 540 percent. The oil wealth did not last. After the 1998–99 banking crisis, President Jamil Mahuad announced that the sucre would be abandoned; the decision helped bring down his government, but the change went ahead, and Ecuador adopted the US dollar on 13 April 2000. Peru kept its own currency, the sol. In 2008 Ecuador adopted a new constitution that was the first anywhere to give nature legally enforceable rights.
Where the Andes Divide Them Today
Geography explains much of the gap in size and in character. Peru's Andes are higher and wider: Huascarán Sur in the Cordillera Blanca reaches 6,768 metres, the highest point in the country. Ecuador's highest peak, Chimborazo, is lower at 6,263 metres, but because it sits on the equatorial bulge its summit is widely reported to be the point on Earth's surface farthest from the planet's centre, with Huascarán a very close second. Peru's coast is a desert that holds Lima, a city of about 10 million people and roughly a third of the national population. Ecuador's coast is greener and holds Guayaquil, the country's largest city, while Quito sits in a highland valley at the foot of the Pichincha volcano.
Ecuador also has something Peru lacks: the Galápagos Islands, about 1,000 kilometres offshore. Peru has the larger share of the Amazon and the ruins that draw most visitors to the region, from Cusco to Machu Picchu. Both are among the world's 17 megadiverse countries. Both rely heavily on commodities, Ecuador on petroleum and farm exports and Peru on mining, farming and fishing. Since 1998 their long border has been a line of trade rather than of trenches. For how that terrain is laid out in detail, from the coastal desert to the Amazon lowlands, see our guide to the geography of Peru and the companion piece on Quito, Ecuador's highland capital.
