The Federal Republic of Central America, originally known as the United Provinces of Central America, was a sovereign state in Central America which existed from 1823 to 1839. The federal republic was composed of five states: Costa Rica, El Salvador, Guatemala, Honduras, and Nicaragua. The federal republic was bordered to the north by Mexico, to the south by Gran Colombia, and on its eastern coastline by the Mosquito Coast and British Honduras.