During the Sandinista revolution and the following Civil War, Cuba gave aid and support to the Sandinista government of Daniel Ortega. The Sandinista government was fighting the American backed rebels (aka) Contras. The conflict ended with the 1990 presidential election where Ortega lost to Violeta Barrios de Chamorro.