 Persistent socioeconomic inequality and civil unrest culminated in the devastating Salvadoran Civil War in the 1980s, which was fought between the military-led government and a coalition of left-wing guerrilla groups.The conflict ended in 1992 with a negotiated settlement that established a multiparty constitutional republic, which remains in place to this day.El Salvador's economy was historically dominated by agriculture, beginning with the indigo plant ("añil" in Spanish), the most important crop during the colonial period, and followed thereafter by coffee, which by the early 20th century accounted for 90 percent of export earnings.