Federal Republic of Central America
The Federal Republic of Central America gained independence from Spain in 1821 and from Mexico in 1823. After several rebellions, by 1841 the federation had dissolved into the independent countries of Guatemala, El Salvador, Honduras, Nicaragua, and Costa Rica.