Spanish colonization of the Americas were predominantly "criollos" (Americas-born people of European ancestry, mostly Spanish or Portuguese), bourgeois and influenced by liberalism and in some cases with military training in the mother country. In 1809 the first declarations of independence from Spanish rule occurred in the Viceroyalty of New Granada. The first two were in present-day Bolivia at Sucre (May 25), and La Paz (July 16); and the third in present-day Ecuador at Quito (August 10). In 1810 Mexico declared independence, with the Mexican War of Independence following for over a decade. In 1821 Treaty of Córdoba established Mexican independence from Spain and concluded the
History of Costa Rica Following the Mexican War of Independence (1810–1821), Costa Rica became part of the independent Mexican Empire in 1821. Subsequently, Costa Rica was part of the Federal Republic of Central America in 1823, before gaining full independence in 1838. Its economy struggled due to lack of connections with European suppliers. In 1856, Costa Rica resisted United States settlers from mounting a take-over of the government. After 1869, Costa Rica established a democratic government. After the Costa Rican Civil War in 1948, the government drafted a new constitution, guaranteeing universal suffrage and the dismantling of the military. Today, Costa Rica is a