The history of El Salvador begins with several distinct groups of Mesoamerican people, especially the Pipil, the Lenca and the Maya. In the early 16th century, the Spanish Empire conquered the territory, incorporating it into the Viceroyalty of New Spain ruled from Mexico City. In 1821, El Salvador achieved independence from Spain as part of the First Mexican Empire, only to further secede as part of the Federal Republic of Central America two years later. Upon the republic's independence in 1841, El Salvador became a sovereign state until forming a short-lived union with Honduras and Nicaragua called the Greater Republic of Central America, which lasted from 1895 to 1898.
the history of el salvador begins with several distinct groups of mesoamerican people especially the pipil the lenca and the maya in the early 16th century the spanish empire conquered the territory incorporating it into the viceroyalty of new spain ruled from mexico city in 1821 el salvador achieved independence from spain as part of the first mexican empire only to further secede as part of the federal republic of central america two years later upon the republic's independence in 1841 el salvador became a sovereign state until forming a short-lived union with honduras and nicaragua called the greater republic of central america which lasted from 1895 to 1898