Today, Cartagena’s walls are one of the best places to watch the sunset. But they were not built for that purpose: they arose from the fear of losing a city that was far too valuable to surrender. To understand why, we need to look at the map as the Spanish Crown did: Cartagena was not just a beautiful port; it was a gateway.
A Bay Turned into a Gateway
Founded in 1533 by Pedro de Heredia, Cartagena occupied a privileged position on the Caribbean Sea and had important connections to the interior of the New Kingdom of Granada. Goods and valuable resources such as gold, silver, and emeralds passed through its port, while its maritime routes connected it to other ports across the Americas and to Spain.
Its proximity to the Isthmus of Panama also gave it military importance, as it allowed the Spanish Crown to monitor access routes and communications with strategically important regions.
What Did “The Key to the Indies of Peru” Mean?
The name reflected Cartagena’s role in protecting routes connected to the Viceroyalty of Peru and defending Spanish territories. It did not mean that the city was the capital of the viceroyalty, but rather that controlling it was essential to maintaining communications and preventing the Crown’s enemies from advancing.
What Made It Valuable Also Made It Vulnerable
This strategic importance made Cartagena a coveted target for Spain’s rivals. In 1586, the English privateer Francis Drake attacked and captured the city. The raid exposed weaknesses in its defenses and forced the Spanish authorities to rethink how to protect one of the Caribbean’s most important ports.
From that point on, fortification became a priority. The Italian engineer Bautista Antonelli took part in defense projects associated with the plans promoted by the Spanish Crown in the late 16th century.
And the defenses did not stop at the walled city itself. Getsemaní was Cartagena’s first neighborhood and its first urban expansion beyond the original settlement. Protecting it therefore meant protecting the city as a whole.

Photograph: Historia National Geographic.
More Than Two Centuries of Walls, Bastions, and Forts
Construction continued across generations and included walls, bastions, and forts designed to protect both the urban center and the maritime approaches. San Felipe de Barajas Castle, the batteries, and the fortifications surrounding the bay all served the same purpose: to make attacks by land and sea more difficult. By around 1796, the walls had reached their final consolidated form.
Today: A Heritage Site to Explore on Foot
In 1984, Cartagena’s port, fortresses, and historic monumental complex were inscribed on the UNESCO World Heritage List.
Walking along the walls reveals something that can easily go unnoticed amid the streets, squares, and everyday movement of the city: Cartagena was not merely an important port, but a decisive point in the Spanish Empire’s strategies for navigation, trade, and defense in the Americas.
Frequently Asked Questions
Why was Cartagena known as “The Key to the Indies of Peru”?
Because of its strategic position in protecting maritime routes and Spanish communications with territories connected to the Viceroyalty of Peru.
When was Cartagena de Indias founded?
In 1533, by Pedro de Heredia.
What happened during Francis Drake’s attack?
In 1586, Drake captured Cartagena, exposing weaknesses in its defenses and prompting new fortification projects.
How long did it take to build Cartagena’s fortifications?
The fortifications were developed and transformed over more than two centuries, through different phases of construction and reinforcement.
When was Cartagena declared a World Heritage Site?
In 1984, by UNESCO.