Heredia, the 'Ciudad de las Flores', is one of the four big cities of Costa Rica's Central Valley and one of the most charming. Barely ten kilometers from San José, but with a quieter, more provincial feel of its own, this colonial city keeps an old-fashioned historic center presided over by its Parque Central, its church of the Inmaculada Concepción and the unmistakable El Fortín, a tower that is the symbol of the province.
But Heredia is much more than its historic center. It's a young, lively city thanks to its strong student life — it's home to the Universidad Nacional (UNA) — and at the same time deeply tied to the coffee tradition: it's surrounded by slopes covered in coffee fields and mountain villages such as Barva, San Rafael, San Isidro and San José de la Montaña, climbing towards Barva Volcano and Braulio Carrillo National Park. It's one of the areas with the best coffee in the country.
This guide walks through Heredia with a practical eye: what to see in the city, how to make the most of its coffee villages and nearby volcanoes, how to get there from San José and the airport, and why many travelers choose it as a quiet, green base for exploring the Central Valley. A city for walking without rushing, drinking good coffee and breathing the fresh air of the Costa Rican mountains.
Heredia was founded in the 18th century, in the middle of the colonial period, as one of the first significant settlements in the Central Valley alongside Cartago, San José and Alajuela. The settlement, first known as Cubujuquí, was renamed Villa Vieja around 1763 and later Heredia, in honor of governor Alonso Fernández de Heredia. Its parish church of the Inmaculada Concepción, raised in the late 18th and early 19th centuries, is one of the sturdiest colonial churches in the country, built to withstand earthquakes. In the 19th century, with the coffee boom — the 'grano de oro' that transformed Costa Rica — Heredia became a prosperous coffee city, and many of its families and estates grew rich exporting the bean. Much of its heritage dates from that period, including El Fortín, a masonry military tower commissioned in 1876 by Fadrique Gutiérrez that is today the symbol of the province and a national monument (declared in 1974). In the 20th century, Heredia reinforced its cultural and educational profile: in 1973 the Universidad Nacional (UNA) was founded, turning it into an important university city. Today it combines its colonial and coffee heritage with the energy of a young, dynamic city in the Gran Área Metropolitana. The full story is on our history page.
Read the full history ↓No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.
Origins, formation and what the sources say.
Before it was called Heredia, this city had a name almost nobody remembers today: Cubujuquí, a word of Indigenous origin. Under that name, in the middle of the colonial 18th century, one of the oldest settlements in Costa Rica's Central Valley was born, at a time when the province was one of the poorest, most isolated and most forgotten in the whole Spanish empire in the Americas: no gold, no large cities, and governors who sometimes plowed their own land for lack of labor. Centuries later, the elegant 'Ciudad de las Flores' (City of Flowers) would grow out of that farming hamlet.
Around 1763 the settlement was renamed Villa Vieja, and shortly afterwards it took the name Heredia, in honor of Alonso Fernández de Heredia, governor of the province. Together with Cartago (the old colonial capital), San José and Alajuela, Heredia established itself as one of the four main cities of the Central Valley, the nuclei around which the country's life would be organized in the centuries that followed.
Colonial Costa Rica was a largely rural society of small and medium landowners who farmed to survive. Heredia belonged to that modest country world, without the great estates or the mining wealth of other colonies. It would be coffee, in the 19th century, that would deeply change the look and the fortune of the city.
One of the great legacies of colonial Heredia is its parish church, dedicated to the Immaculate Conception. Built between the late 18th and the early 19th century, it is one of the best-preserved colonial churches in Costa Rica, a country where frequent earthquakes have destroyed much of the built heritage over the course of history, including most of the old churches.
The key to its survival is the way it was built: the church was raised with massive, low walls, thick and solid, deliberately designed to withstand the quakes that shake the Central Valley. That robust, almost fortress-like architecture let it survive many tremors that did bring down other churches in the region. Today it is considered a gem of Costa Rican colonial architecture.
The church presides over the Parque Central of Heredia and, together with El Fortín and the Casa de la Cultura, makes up the historic ensemble at the heart of the city. Beyond its religious value, it is proof of how colonial Costa Rican society learned to build on seismic ground, putting solidity ahead of show.
The great turning point in Heredia's history, as in that of the whole Central Valley, was the spread of coffee in the 19th century. Costa Rica was one of the first countries in Central America to grow coffee for export, and the so-called 'grano de oro' (golden bean) completely transformed an economy that until then had been poor and based on subsistence. The temperate climate and volcanic soils on the slopes of Heredia and Barva turned out to be ideal for high-quality highland coffee.
The wealth coffee generated reshaped Heredian society. Estates and processing mills appeared, along with prosperous coffee-growing families and an emerging bourgeoisie that invested in grand houses, public buildings and urban improvements. Coffee connected small Costa Rica to international markets, above all the European one, and paid for public works and modernization across the country. Heredia established itself as one of the coffee cities par excellence.
Much of the heritage admired today in the city and the province dates from that prosperous period: large old houses, public buildings and, above all, El Fortín, the symbol of 19th-century Heredia. Coffee culture — the growing, the harvest, the processing — became so deeply etched into the area's identity that it is still one of its defining traits and one of its main attractions.
Heredia's most emblematic monument, El Fortín, came out of the restless coffee-era Costa Rica of the 19th century. It is a masonry tower (brick and stone) on a square base, about six meters tall, commissioned in 1876 during the administration of president Tomás Guardia and designed and supervised by Fadrique Gutiérrez, then garrison commander and governor of the province, despite not being an architect. The original project was far more ambitious — it called for four towers — but the lack of funds meant only one was built, serving as a defense and lookout point for the barracks. It is the only part of that fortification still standing.
El Fortín became famous for a quirk that defies all military logic: its loopholes — the openings through which firearms would be aimed — are built the wrong way round, wider on the outside than on the inside. In a normal fortification they are made the opposite way (narrow outside, wide inside) to protect the shooter and widen the firing angle. As built at El Fortín, they would be useless for defense, since they would make it easier for enemy fire to get in. That oddity, put down to the eccentric character of its builder, gave rise to plenty of anecdotes and legends.
Beyond the curiosity, El Fortín became over time the symbol of the city and the province of Heredia, and it was declared a national monument by decree in 1974. Its silhouette presides over the Parque Central and appears on coats of arms, seals and images representing the 'Ciudad de las Flores'. It is the obligatory postcard of any visit.
In the 20th century Heredia added a new profile to its colonial and coffee heritage, one that still defines it: that of a university city. In 1973 the Universidad Nacional (UNA), one of Costa Rica's main public universities, was founded in Heredia. The arrival of the UNA transformed life in the city, filling it with students, professors, academic and cultural activity, and giving it a young, dynamic character that contrasts with the calm of its historic core.
The university presence drove the growth of cafés, bookshops, restaurants, bars and an active cultural scene, above all around the campus and the center. Heredia became an important educational and research hub within the country, which drew people and services and strengthened its place in the Gran Área Metropolitana (GAM), the urban conglomeration that brings together San José, Alajuela, Cartago and Heredia.
Today Heredia is a city of several layers: the colonial heritage of its church and its Parque Central, the coffee legacy of its slopes and estates, the youthful energy of its university, and the modernity of the metropolitan area, with shopping malls, free-trade zones and tech companies on its outskirts. Ringed by coffee fields, mountain villages and Barva Volcano, it keeps both its affectionate nickname of 'Ciudad de las Flores' and its role as one of the living centers of Costa Rica's Central Valley.