Seventy thousand of their descendants live in Costa Rica today, and the country is known for good relations among races. Regrettably, only 1 percent of Costa's Rica's 3 million people are of indigenous heritage. An overwhelming 98 percent of the country is white, and those of Spanish descent call themselves Ticos. .
Of all the Spanish colonies, Costa Rica enjoyed the least influence as a colony. It was initially a tough and unpopular place to settle, with few valuable or easily exploited resources. The Spanish were far more interested in developing their holdings in Mexico and Peru, where vast amounts of silver and gold were being obtained. The early hapless settlers who came to Costa Rica were left largely to their own devices, and the first successful establishment of a colonial city was not until 1562, when Juan Vasquez de Coronado founded Cartago. .
When Mexico rebelled against Spain in 1821, Costa Rica and the rest of Central America followed suit. Two years later, a faction in Costa Rica even opted to become part of Mexico, sparking a civil war in the country's center between four neighboring cities. After the republican cities of San Jose and Alajuela soundly defeated the pro-Mexican Heredia and Cartago, sovereignty was established. .
The first head of state was Juan Mora Fernandez, elected in 1824. Best remembered for his land reforms, Fernandez followed a progressive course but inadvertently created an elite class of powerful coffee barons. The barons later overthrew the nation's first president, Jose Maria Castro, who was succeeded by Juan Rafael Mora. It was under Mora's leadership that Costa Rican volunteers managed to repulse a would-be conqueror, the North American William Walker. .
Walker was a disgruntled southerner who thought that the United States should annex Central America and turn it into a slave state. He was a lunatic, and a dangerous rather than charming one. With a piecemeal army of about 50 men, Walker had earlier invaded Mexico, where he had been captured and then released back to the States.