Relations between the Federal Republic of Central America, also known as the Central American Federation, and the United States were formally established in 1824 following the Federation's independence from Spain. Relations lasted until 1841 when the Federation dissolved and relations with the United States continued among the newly independent former member states of Costa Rica, El Salvador, Guatemala, Honduras, and Nicaragua.