Costa Rica was sparsely inhabited by indigenous peoples before coming under Spanish rule in the 16th century.
It remained a peripheral colony of the empire until independence as part of the short-lived First Mexican Empire, followed by membership in the United Provinces of Central America, from which it formally declared independence in 1847.
Most of the native population was absorbed into the Spanish-speaking colonial society through inter-marriage, except for some small remnants, the most significant of which are the Bribri and Boruca tribes who still inhabit the mountains of the Cordillera de Talamanca, in the southeastern part of Costa Rica, near the frontier with Panama.
The name la costa rica, meaning "rich coast" in the Spanish language, was in some accounts first applied by Christopher Columbus, who sailed to the eastern shores of Costa Rica during his final voyage in 1502, During most of the colonial period, Costa Rica was the southernmost province of the Captaincy General of Guatemala, nominally part of the Viceroyalty of New Spain.
In practice, the captaincy general was a largely autonomous entity within the Spanish Empire.
The conflict was won by the Republicans and, as a consequence, the city of Cartago lost its status as the capital, which moved to San José.Please consider converting them to full citations to ensure the article remains verifiable and maintains a consistent citation style.Several templates and the re Fill tool are available to assist in formatting.More recently, pre-Columbian Costa Rica has also been described as part of the Isthmo-Colombian Area.Stone tools, the oldest evidence of human occupation in Costa Rica, are associated with the arrival of various groups of hunter-gatherers about 10,000 to 7,000 years BCE in the Turrialba Valley.(re Fill documentation)), is a country in Central America, bordered by Nicaragua to the north, Panama to the southeast, the Pacific Ocean to the west, the Caribbean Sea to the east, and Ecuador to the south of Cocos Island.It has a population of around 4.9 million, Its economy, once heavily dependent on agriculture, has diversified to include sectors such as finance, corporate services for foreign companies, pharmaceuticals, and ecotourism.Shards of pots, cylindrical vases, platters, gourds and other forms of vases decorated with grooves, prints, and some modelled after animals have been found.The impact of indigenous peoples on modern Costa Rican culture has been relatively small compared to other nations, since the country lacked a strong native civilization to begin with.That date is still celebrated as Independence Day in Costa Rica even though, technically, under the Spanish Constitution of 1812 that had been readopted in 1820, Nicaragua and Costa Rica had become an autonomous province with its capital in León.Upon independence, Costa Rican authorities faced the issue of officially deciding the future of the country.