For more than four decades Nicaragua was the property of one family. The Somozas, installed with the help of the U.S.-trained National Guard in the 1930s, ran the country as a business and were dependable allies of Washington. Their greed, including the theft of relief funds after the 1972 Managua earthquake, eventually united peasants, students, businesspeople, and clergy against them. In July 1979 a broad insurrection led by the Sandinistas drove the last Somoza out.
The Sandinista government launched a literacy campaign, expanded health care, and redistributed the Somozas' vast landholdings. It also took arms and advisers from Cuba and the Soviet Union, postponed elections, pressured the opposition press, and sent weapons to leftist guerrillas in neighboring El Salvador. To Ronald Reagan, who took office in 1981, this was a second Cuba on the American mainland.
Reagan authorized the CIA to organize, train, and supply a rebel army built around former National Guardsmen, soon known as the Contras, operating from bases in Honduras. The Contras could not hold territory. They raided farms, clinics, schools, and cooperatives, aiming to wreck the economy and discredit the government, while the United States imposed a trade embargo and mined Nicaraguan harbors. In 1986 the International Court of Justice ruled that these actions violated international law. When Congress banned military aid, White House officials secretly financed the Contras with profits from arms sales to Iran, the Iran–Contra scandal.
The war killed roughly 30,000 people (estimates range up to about 43,000) in a country of some three million and, with the embargo, ruined the economy. A peace plan devised by Central American presidents in 1987 led to a ceasefire and elections. In February 1990 the war-weary electorate voted the Sandinistas out, and they handed over power peacefully.
The CED lists the Sandinista–Contra conflict as a proxy war. It mirrors the Soviet–Afghan War of the same decade, in which Washington likewise armed insurgents against a Soviet-backed government, and it drew criticism from followers of Liberation Theology, many of whom supported the revolution.