El Salvador, Honduras and Nicaragua form the Greater Republic of Central America.

The Greater Republic of Central America (Spanish: Repblica Mayor de Centroamrica), later the United States of Central America (Spanish: Estados Unidos de Centroamrica), originally planned to be known as the Republic of Central America (Spanish: Repblica de Amrica Central), was a short-lived political union between El Salvador, Honduras, and Nicaragua, lasting from 1896 to 1898. It was an attempt to revive the failed Federal Republic of Central America that existed earlier in the century.

The three countries agreed to establish a union with the signing of the Treaty of Amapala on 20 June 1895. On 15 September 1896, after the countries had all ratified the treaty individually, the union was formally confirmed. The republic was rechristened the "United States of Central America" when its constitution came into effect on 1 November 1898.

The capital was to be the Honduran town of Amapala on the Gulf of Fonseca. The union was dissolved on 29 November 1898 after General Toms Regalado seized power in El Salvador on 13 November 1898.

Before its dissolution, the Greater Republic established diplomatic relationships with the United States. Guatemala and Costa Rica both considered joining the union, but neither of them eventually did so.

El Salvador ( (listen); Spanish: [el salβaˈðoɾ] (listen), meaning "The Saviour"), officially the Republic of El Salvador (Spanish: República de El Salvador), is a country in Central America. It is bordered on the northeast by Honduras, on the northwest by Guatemala, and on the south by the Pacific Ocean. El Salvador's capital and largest city is San Salvador. The country's population in 2021 is estimated to be 6.8 million.Among the Mesoamerican nations that historically controlled the region are the Lenca (after 600 AD), the Mayans, and then the Cuzcatlecs. Archaeological monuments also suggest an early Olmec presence around the first millennium BC. In the beginning of the 16th century, the Spanish Empire conquered the Central American territory, incorporating it into the Viceroyalty of New Spain ruled from Mexico City. However the Viceroyalty of Mexico had little to no influence in the daily affairs of the isthmus, which was colonized in 1524. In 1609, the area was declared the Captaincy General of Guatemala by the Spanish, which included the territory that would become El Salvador until its independence from Spain in 1821. It was forcefully incorporated into the First Mexican Empire, then seceded, joining the Federal Republic of Central America in 1823. When the federation dissolved in 1841, El Salvador became a sovereign state, then formed a short-lived union with Honduras and Nicaragua called the Greater Republic of Central America, which lasted from 1895 to 1898.From the late 19th to the mid-20th century, El Salvador endured chronic political and economic instability characterized by coups, revolts, and a succession of authoritarian rulers. Persistent socioeconomic inequality and civil unrest culminated in the Salvadoran Civil War from 1979 to 1992, fought between the military-led government backed by the United States, and a coalition of left-wing guerrilla groups. The conflict ended with the Chapultepec Peace Accords. This negotiated settlement established a multiparty constitutional republic, which remains in place to this day.

While this Civil War was going on in the country large numbers of Salvadorans emigrated to the United States, and by 2008 they were one of the largest immigrant groups in the US.El Salvador's economy has historically been dominated by agriculture, beginning with the Spanish taking control of the indigenous cacao crop in the 16th century, with production centered in Izalco, and the use of balsam from the ranges of La Libertad and Ahuachapan. This was followed by a boom in use of the indigo plant (añil in Spanish) in the 19th century, mainly for its use as a dye. Thereafter the focus shifted to coffee, which by the early 20th century accounted for 90% of export earnings. El Salvador has since reduced its dependence on coffee and embarked on diversifying its economy by opening up trade and financial links and expanding the manufacturing sector. The colón, the currency of El Salvador since 1892, was replaced by the United States dollar in 2001.El Salvador ranks 124th among 189 countries in the Human Development Index. In addition to high rates of poverty and gang-related violent crime, El Salvador has the second-highest level of income inequality in Latin America. Among 77 countries included in a 2021 study, El Salvador was one of the least complex economies for doing business.