When Did El Salvador Gain Its Independence?

El Salvador gained its independence on Sept. 15, 1821. El Salvador and other Central American countries, a region known as New Spain, that had previously been under Spanish rule jointly declared their independence from Spain through the Act of Independence in 1821, during which time Napoleon's troops were occupying Spain.

These Central American countries then formed a federation of states that was not dissolved until 1838, at which time El Salvador officially became an independent republic. Since that time, El Salvador has experienced many revolutions, wars (both civil and against other Central American nations) and military coups that have threatened its independence.