Ecuador, officially the Republic of Ecuador, is a country in northwestern South America, bordered by Colombia on the north, Peru on the east and south, and the Pacific Ocean on the west. It also includes the Galápagos Province which contains the Galápagos Islands in the Pacific, about 1,000 kilometers (540 nmi; 620 mi) west of the mainland. The country's capital is Quito, and the largest city is Guayaquil.
The land that comprises modern-day Ecuador was once home to several groups of indigenous peoples that were gradually incorporated into the Inca Empire during the 15th century. The territory was colonized by the Spanish Empire during the 16th century, achieving independence in 1820 as part of Gran Colombia, from which it emerged as a sovereign state in 1830. The legacy of both empires is reflected in Ecuador's ethnically diverse population, with most of its 17.8 million people being mestizos, followed by large minorities of Europeans, Native American, African, and Asian descendants. Spanish is the official language spoken by a majority of the population, although 13 native languages are also recognized, including Quechua and Shuar.
Ecuador is a plurinational representative democratic presidential republic and a developing country whose economy is highly dependent on exports of commodities, primarily petroleum and agricultural products. The country is a founding member of the United Nations, Organization of American States, Mercosur, PROSUR, and the Non-Aligned Movement. According to the Center for Economic and Policy Research, between 2006 and 2016, poverty decreased from 36.7% to 22.5% and annual per capita GDP growth was 1.5 percent (as compared to 0.6 percent over the prior two decades). At the same time, the country's Gini index of economic inequality improved from 0.55 to 0.47.
One of 17 megadiverse countries in the world, Ecuador hosts many endemic plants and animals, such as those of the Galápagos Islands. In recognition of its unique ecological heritage, the new constitution of 2008 is the first in the world to recognize legally enforceable rights of nature.
In the 2024 Global Hunger Index (GHI), Ecuador ranks 58th out of 127 countries with a score of 11.6, which indicates a moderate level of hunger. In 2026 the United Nations reported that 2.6 million people in Ecuador are facing acute hunger amid an unprecedented crisis.
The country's name means literally "Equator" in the Spanish language, truncated from the Spanish official name, República del Ecuador (lit. "Republic of the Equator"), derived from the former Ecuador Department of Gran Colombia established in 1824 as a division of the former territory of the Royal Audience of Quito. Quito, which remained the capital of the department and republic, is located on the equator.
Various peoples had settled in the area of future Ecuador before the arrival of the Incas. The archeological evidence suggests that the Paleo-Indians' first dispersal into the Americas occurred near the end of the last glacial period, around 16,500–13,000 years ago. The first people who reached Ecuador may have journeyed by land from North and Central America or by boat down the Pacific Ocean coastline.
Even though their languages were unrelated, these groups developed similar groups of cultures, each based in different environments. The people of the coast combined agriculture with fishing, hunting, and gathering; the people of the highland Andes developed a sedentary agricultural way of life; and peoples of the Amazon basin relied on hunting and gathering; in some cases, this is combined with agriculture and arboriculture.
Many civilizations arose in Ecuador, such as the Valdivia Culture and Machalilla Culture on the coast, the Quitus (near present-day Quito), and the Cañari (near present-day Cuenca).
In the highland Andes mountains, where life was more sedentary, groups of tribes cooperated and formed villages; thus the first nations based on agricultural resources and the domestication of animals formed. Eventually, through wars and marriage alliances of their leaders, groups of nations formed confederations.
When the Incas arrived, they found that these confederations were so developed that it took the Incas two generations of rulers—Topa Inca Yupanqui and Huayna Capac—to absorb them into the Inca Empire. People belonging to the confederations that gave them the most problems were deported to distant areas of Peru, Bolivia, and north Argentina. Similarly, a number of loyal Inca subjects from Peru and Bolivia were brought to Ecuador to prevent rebellion. Thus, the region of highland Ecuador became part of the Inca Empire in 1463 sharing the same language.
In contrast, when the Incas made incursions into coastal Ecuador and the eastern Amazon jungles of Ecuador, they found both the environment and indigenous people more hostile. Moreover, when the Incas tried to subdue them, these indigenous people withdrew to the interior and resorted to guerrilla tactics. As a result, Inca expansion into the Amazon Basin and the Pacific coast of Ecuador was hampered. The indigenous people of the Amazon jungle and coastal Ecuador remained relatively autonomous until the Spanish soldiers and missionaries arrived in force. The Amazonian people and the Cayapas of Coastal Ecuador were the only groups to resist both Inca and Spanish domination, maintaining their languages and cultures well into the 21st century.
Before the arrival of the Spaniards, the Inca Empire was involved in a civil war. The untimely death of both the heir Ninan Cuyochi and the Emperor Huayna Capac, from a European disease that spread into Ecuador, created a power vacuum between two factions and led to a civil war. The army stationed north headed by Atahualpa marched south to Cuzco and massacred the royal family associated with his brother. In 1532, a small band of Spaniards headed by Francisco Pizarro reached Cajamarca and lured Atahualpa into a trap (battle of Cajamarca). Pizarro promised to release Atahualpa if he made good his promise of filling a room full of gold. But, after a mock trial, the Spaniards executed Atahualpa by strangulation.
New infectious diseases such as smallpox, endemic to the Europeans, caused high fatalities among the Amerindian population during the first decades of Spanish rule, as they had no immunity. At the same time, the natives were forced into the encomienda labor system for the Spanish. In 1563, Quito became the seat of a real audiencia (administrative district) of Spain and part of the Viceroyalty of Peru and later the Viceroyalty of New Granada.
The 1797 Riobamba earthquake, which caused up to 40,000 casualties, was studied by Alexander von Humboldt, when he visited the area in 1801–1802.
After nearly 300 years of Spanish rule, Quito still remained small with a population of 10,000 people. On 10 August 1809, the city's criollos called for independence from Spain (first among the peoples of Latin America). They were led by Juan Pío Montúfar, Quiroga, Salinas, and Bishop Cuero y Caicedo. Quito's nickname, "Luz de América" ("Light of America"), is based on its leading role in trying to secure an independent, local government. Although the new government lasted no more than two months, it had important repercussions and was an inspiration for the independence movement of the rest of Spanish America. Today, 10 August is celebrated as Independence Day, a national holiday.
On 9 October 1820, the Department of Guayaquil became the first territory in Ecuador to gain its independence from Spain, and it spawned most of the Ecuadorian coastal provinces, establishing itself as an independent state. Its inhabitants celebrated what is now Ecuador's official Independence Day on 24 May 1822. The rest of Ecuador gained its independence after Antonio José de Sucre defeated the Spanish Royalist forces at the Battle of Pichincha, near Quito. Following the battle, Ecuador joined Simón Bolívar's Republic of Gran Colombia, also including modern-day Colombia, Venezuela, and Panama. In 1830, Ecuador separated from Gran Colombia and became an independent republic. Two years later, it annexed the Galapagos Islands.