San Francisco de Campeche is one of the least known colonial gems in Mexico and, even so, one of the most charming. Capital of the state of Campeche, on the shore of the Gulf of Mexico, it is a walled city of cobbled streets and houses with facades painted in pastel colors —ochres, blues, pinks, yellows—, perfectly restored. Its historic center was declared a World Heritage Site by UNESCO in 1999, in recognition of its exceptional system of fortifications, raised to defend the city from pirates.
Because the history of Campeche is marked by the sea and by corsairs. As the peninsula's main port during the colonial period, it was a repeated target of pirate attacks, which led to ringing it with a wall and bastions and building forts on the nearby hills. Today you can walk the bastions that survive, the Puerta de Tierra and Puerta de Mar gates, and the forts of San Miguel and San José el Alto, turned into museums with splendid views over the Gulf. At dusk, the malecón fills with campechanos strolling along the seafront.
This guide covers the practical side of Campeche: how to walk the walled center and its bastions, which forts and museums to visit, how to enjoy its excellent seafood cooking (pan de cazón, shrimp, pompano), where to stay and how to use the city as a base for the nearby archaeological site of Edzná and for the great Calakmul. Quiet, safe and full of light, Campeche is a destination that rewards travelers willing to step off the well-trodden Yucatán route.
Founded by the Spanish in 1540 on the old Maya settlement of Can Pech, Campeche was the peninsula's great port during the colonial period and, for that reason, a favorite target for pirates. To defend itself, the city surrounded itself with an imposing wall with bastions and forts, today its greatest heritage and the reason it was declared a World Heritage Site. 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.
On 6 July 1685, the people of Campeche watched what they feared most appear on the horizon: a pirate fleet. At its head came two of the most feared corsairs in the Caribbean, the Dutchman Laurens de Graaf —whom the Spanish called 'Lorencillo'— and the Frenchman Michel de Grammont. For almost two months the city was sacked and burned and its inhabitants taken hostage. When the enemy sails finally pulled away, in September, the Spanish Crown made a decision that would change the face of Campeche forever: to ring it with a wall. That wall, born out of terror, is today its greatest treasure and the reason UNESCO declared the city a World Heritage Site. This is the story of the only walled city in Mexico.
Before the Spanish arrived, on the site the city occupies today there was a Maya settlement called Can Pech (or Kin Pech), part of one of the chiefdoms into which the Yucatán Peninsula was divided. The name Campeche derives from that Maya name. The area, open to the sea, was a point of contact and trade on the western coast of the peninsula.
The Spanish first reached these shores very early, in 1517, with the expedition of Francisco Hernández de Córdoba, in one of the first European contacts with the Maya civilization, earlier even than the conquest of central Mexico. But the formal founding of the Spanish city took decades, because of Maya resistance: it was Francisco de Montejo 'the Younger' who founded the Villa de San Francisco de Campeche in 1540, on the old Can Pech.
From its birth, Campeche was tied to the sea. Its port quickly became the most important on the peninsula and one of the main gateways in and out of the region toward the rest of the Spanish empire. Valuable goods passed through it, above all dyewood (logwood, palo de Campeche), highly prized in Europe for dyeing cloth, along with other products. That commercial wealth would be both its glory and its undoing, by turning it into an irresistible target.
As the peninsula's great port, rich on the trade in dyewood and other goods, Campeche became one of the favorite targets of the pirates and corsairs who ravaged the Caribbean and the Gulf of Mexico between the 16th and 17th centuries. Buccaneers of various nations —English, French, Dutch— attacked the city repeatedly, sacking it, burning it and terrorizing its inhabitants.
Among the corsairs who besieged Campeche are legendary names of piracy, and some of the attacks were especially devastating. The city, prosperous but defenseless, suffered enormous losses in lives and property, and its people lived under the constant threat of seeing enemy sails appear on the horizon.
This age of terror left an indelible mark on the identity of Campeche and, above all, transformed its appearance forever. It was the need to protect itself from pirates that led the Spanish Crown to undertake, at enormous effort and expense, the construction of the impressive system of fortifications that defines the city today and earned it international recognition. The pirate threat, paradoxically, created Campeche's greatest heritage treasure.
Of all the attacks Campeche suffered, none is so etched in memory as that of 1685. On 6 July of that year, a large pirate expedition commanded by Laurens de Graaf ('Lorencillo'), a Dutch corsair famous across the Caribbean, and by the French buccaneer Michel de Grammont, landed near the city. While Lorencillo advanced along the beach road, Grammont came through the hills, in a coordinated assault that, after fierce resistance, forced the Spanish defenders to flee.
The pirates occupied Campeche for almost two months. Failing to find the great haul they expected —the inhabitants had managed to get much of their property to safety— and with the ransom negotiations breaking down, the occupation turned violent: the corsairs began to burn the city and execute prisoners, until, according to the chronicles, De Graaf himself stepped in to stop the killing of hostages. In September 1685 the pirates withdrew, taking numerous captives with them to demand ransom.
The sack by Lorencillo and Grammont was the last straw. The Spanish Crown understood that Campeche, one of its most valuable ports, could not remain defenseless, and finally ordered the city to be fortified in full. The nightmare of that July of 1685 was, paradoxically, the direct origin of the monument that defines Campeche today and sets it apart from any other Mexican city.
Faced with repeated attacks, and after the trauma of the 1685 sack, between 1686 and 1704 a complete defensive system was raised around Campeche, one of the most remarkable works of military engineering in the Spanish Caribbean. The central element was a wall on an irregular hexagonal plan that ringed the urban core, with a perimeter of some 2.5 kilometers and stone walls up to eight meters high, reinforced at its corners by eight bastions (corner fortifications) and with two main gates: the Puerta de Mar, toward the port, and the Puerta de Tierra, toward the interior.
The wall alone was not enough to fend off bombardment from the sea, so in the 18th century it was complemented by two forts on the hills flanking the city: San Miguel and San José el Alto, fitted with cannon, moats and drawbridges, which covered the approaches from the sea and completed the defense.
Over time, as the pirate threat receded and the city grew, much of the curtain wall was demolished to allow urban expansion. But several bastions, both gates and both forts survived, and today they make up an exceptional ensemble. That fortified heritage, unique of its kind in Mexico, was the basis for the declaration of the historic center of Campeche as a World Heritage Site by UNESCO in 1999.
After Mexican independence, Campeche remained an important port and regional center. In the 19th century the Yucatán Peninsula went through a period of great political complexity, and what is now the state of Campeche ended up separating from Yucatán to form its own entity around 1858-1863, with the city of Campeche as its capital. The region's economy swung between port trade, dyewood and, later, other activities.
Through much of the 20th century Campeche was a quiet city, somewhat off the main circuits, which paradoxically helped its historic center keep its street plan and its colonial architecture. In recent decades, a determined restoration effort brought back the colored facades, the cobbled streets, the bastions and the forts, returning the old town to its full splendor.
That effort culminated in the inscription of the fortified historic center on the UNESCO World Heritage list in 1999. The discovery of nearby, monumental Calakmul, in the jungle of the south of the state, added another great draw. Today Campeche combines its Maya heritage, its past as a port and a pirate target and its colonial military architecture in a bright, safe destination, still less crowded than its Yucatán neighbors, that rewards the curious traveler.