The history of San José, the capital of Costa Rica, is a journey from a humble settlement to the country's main political and economic centre. The city was founded relatively late compared to other colonial capitals, which determined its unique appearance.
The settlement was established in 1738 by order of the Spanish authorities, who sought to unite scattered farms in the Aserrí Valley. Initially, it was named Villa Nueva de la Boca del Monte. A small church was built for the new parish in honour of Saint Joseph (San José in Spanish), which eventually gave the city its modern name. In the early stages of its existence, the settlement grew slowly, partly due to a lack of drinking water.
A turning point in the history of San José was Costa Rica gaining independence. In 1823, following a short civil war, San José was declared the capital, replacing the older colonial city of Cartago in this status. This step symbolised a break with the colonial past. The following factors contributed to further growth:
- Geographical location: Being situated in the fertile Central Valley at an altitude of about 1,170 metres above sea level created favourable conditions for agriculture.
- Economic boom: In the 19th century, the city became a hub for tobacco cultivation, and later for the "golden grain" — coffee. Revenues from coffee exports became the main source of prosperity and allowed for the financing of large-scale projects.
- Political will: The transfer of the capital and the concentration of political and economic power in the city facilitated its rapid development.
Unlike many Latin American capitals, San José has almost no Spanish colonial architecture. The economic rise of the 19th century allowed the city to modernize quickly. Notably, in 1884, San José became one of the first cities in the world and the first in Latin America to have electric street lighting. Funded by coffee barons, the National Theatre (opened in 1897) was built, becoming a symbol of the nation's cultural ambitions. Thus, the city quickly transformed into not only the administrative but also the cultural centre of Costa Rica.