Nicaragua: a history from León Viejo to the Sandinistas

The largest country in Central America, Nicaragua was ruled for four decades by the Somoza family until the Sandinista revolution of 1979, followed by a decade of war.

By Last reviewed

Nicaragua
Nicaragua and its neighbours. Borders approximate.

Key facts

Capital
Managua
Independence
15 September 1821
Population
About 7 million
Language
Spanish, with English and Indigenous languages on the Caribbean coast
Area
The largest country in Central America
Known for
Lake Nicaragua and a chain of volcanoes

Through the ages

The main periods of Nicaragua's history, 2000 BCE to today. Recent centuries are drawn wider so they can be read.

  1. Indigenous peoples2000 BCE to 1524
  2. Spanish colony1524 to 1821
  3. Independent republic1821 to 1912
  4. US occupation1912 to 1933
  5. Somoza dynasty1937 to 1979
  6. Sandinista revolution and Contra war1979 to 1990
  7. Post-war Nicaragua1990 to today

Timeline

  1. 1524
    Empires and dynasties

    León and Granada

    Francisco Hernández de Córdoba founds the Spanish towns of León and Granada, rivals for centuries.

  2. 1610
    Disasters

    León Viejo is abandoned

    Earthquakes and an eruption force the abandonment of the first León, whose ruins survive.

  3. 15 September 1821
    Independence

    Independence

    Nicaragua declares independence from Spain with the rest of Central America and becomes a separate republic in 1838.

  4. 1838
    Independence

    A separate republic

    Nicaragua leaves the Central American federation.

  5. 1856
    Wars and conflict

    William Walker

    The American adventurer William Walker makes himself president, until Central American armies drive him out in 1857.

  6. 1912
    Wars and conflict

    US occupation

    US Marines land and occupy Nicaragua, with short breaks, until 1933.

  7. 1927
    Wars and conflict

    Sandino's war

    Augusto César Sandino leads a guerrilla war against the US Marines. He is murdered in 1934 on the orders of Anastasio Somoza García.

  8. 1934
    Politics

    Sandino is murdered

    Augusto Sandino is killed on the orders of the National Guard commander Anastasio Somoza García.

  9. 1937
    Politics

    The Somozas

    Anastasio Somoza García becomes president, beginning more than four decades of rule by his family.

  10. 23 December 1972
    Disasters

    The Managua earthquake

    An earthquake destroys much of Managua and kills thousands. The theft of aid money turns many against the Somozas.

  11. 19 July 1979
    Politics

    The Sandinista revolution

    The Sandinista National Liberation Front overthrows Anastasio Somoza Debayle.

  12. 1981 to 1990
    Wars and conflict

    The Contra war

    US-backed Contra rebels fight the Sandinista government. In 1986 the International Court of Justice rules that US support for the Contras broke international law.

  13. 1990
    Politics

    Violeta Chamorro

    Violeta Chamorro defeats the Sandinistas in an election, becoming the first woman elected president in the Americas.

  14. 1998
    Disasters

    Hurricane Mitch

    Hurricane Mitch kills thousands of people in Nicaragua, many in a mudslide on the Casita volcano.

  15. 2007
    Politics

    Ortega returns

    The former Sandinista leader Daniel Ortega returns as president and steadily tightens his grip on power.

  16. 2018
    Politics

    Protests crushed

    Mass protests against the government are put down, with hundreds killed.

Lakes and volcanoes

Nicaragua lies between the Pacific and the Caribbean, with two great lakes and a chain of volcanoes. Before the Spanish arrived, the Pacific side was home to peoples such as the Nicarao, after whose chief the country is said to be named. In 1524 the Spanish founded León and Granada, which became rival cities, one liberal and one conservative, for the next three centuries. The first León was abandoned after earthquakes in 1610, and its ruins are now a World Heritage Site. On the Caribbean coast, the British allied with the Miskito people and held influence for many years.

Independence and foreign meddling

Nicaragua declared independence from Spain with the rest of Central America on 15 September 1821 and became a separate republic in 1838. Its position made it a possible route for a canal between the oceans, which drew foreign interest. In 1856 an American adventurer, William Walker, seized power and made himself president, until Central American armies drove him out. In 1912 US Marines landed and occupied the country, with brief breaks, until 1933. Augusto César Sandino led a guerrilla war against them and became a national hero after he was murdered in 1934.

The Somozas and the revolution

From 1937 the Somoza family ruled Nicaragua for more than four decades, amassing great wealth. After a devastating earthquake in Managua in 1972, much of the international aid was stolen, turning even many business leaders against the regime. On 19 July 1979 the Sandinista National Liberation Front, named after Sandino, overthrew the last Somoza.

War and after

The Sandinista government launched literacy and health campaigns but faced the Contras, rebels armed and funded by the United States. In 1986 the International Court of Justice ruled in Nicaragua’s favour, finding that US support for the Contras broke international law. The war and a US trade embargo wrecked the economy. In 1990 voters elected Violeta Chamorro, the first woman elected president in the Americas, and the war ended. Daniel Ortega, the Sandinista leader, returned to the presidency in 2007 and has since tightened his control, jailing opponents after protests in 2018.

Nicaragua and Pakistan have diplomatic relations. The World Court case Nicaragua won in 1986 is still cited around the world as a key ruling on the use of force between states. It remains one of the poorest countries in the Americas.

For our latest reporting on Nicaragua, see the news listed on this page.

Landmarks and heritage

1524 to 1610

Ruins of León Viejo

Near Lake Managua

One of the oldest Spanish colonial settlements in the Americas. A UNESCO World Heritage Site.

1747 to 1814

León Cathedral

León

The largest cathedral in Central America, where the poet Rubén Darío is buried. A UNESCO World Heritage Site.

Colonial

Granada

Lake Nicaragua

A colourful colonial city on the shore of Lake Nicaragua.

Terms you will meet in the news

Sandinistas
The Sandinista National Liberation Front, named after Augusto Sandino, which led the 1979 revolution.
Contras
The US-backed rebels who fought the Sandinista government in the 1980s.
Rubén Darío
Nicaragua's national poet, a founder of the Spanish-language modernist movement.
Somoza
The family that ruled Nicaragua from 1937 to 1979.

Quick answers

What was the Sandinista revolution?

The 1979 uprising led by the Sandinista National Liberation Front that overthrew the Somoza family dictatorship.

What did the World Court rule in 1986?

In Nicaragua v. United States, the International Court of Justice ruled that US support for the Contra rebels and the mining of Nicaraguan harbours broke international law.

Who was Violeta Chamorro?

The newspaper publisher who defeated the Sandinistas in 1990 and became the first woman elected president in the Americas.

Who was Sandino?

Augusto César Sandino, who led guerrilla resistance to the US occupation from 1927 to 1933 and was murdered in 1934. The Sandinistas are named after him.

What is the capital of Nicaragua?

Managua, on the shore of Lake Managua.

Sources and further reading

Compiled by The Indus Compass from the sources above and standard reference works, and reviewed 28 November 2026. Dates before the modern era are approximate and some are debated by historians. Spotted a mistake? Tell the newsroom and we will correct it.