Long before Costa Rica became synonymous with cloud forests and wildlife reserves, its coastlines were contested territory in one of history’s most dramatic power struggles. During the sixteenth, seventeenth, and eighteenth centuries, the country’s remote bays, dense jungles, and exposed river mouths made it both a target and a thoroughfare for pirates, corsairs, and privateers operating under the flags of, or in defiance of, Europe’s rival empires.
The roots of piracy along Costa Rica’s shores run directly back to the geopolitics of the Old World. When Protestant England squared off against Catholic Spain over colonial dominance, the English crown recruited experienced sailors as corsairs, essentially licensed agents of terror against Spanish ships and settlements throughout the Americas. Costa Rica, known as the Rich Coast, sat squarely in the path of Spanish trade routes linking South America and Panama to the broader empire. That made it an inevitable destination for those looking to plunder.
The first documented pirate attack in Costa Rican waters was recorded in the 1570s at the mouth of the San Juan River, near Barra del Colorado. The target was significant: the cargo belonged to Costa Rica’s newly appointed Spanish governor, Diego de Artieda Chirinos, who was sailing with furniture, money, and supplies meant for the colonial capital of Cartago. Pirates stripped the vessel clean, dealing a humiliating early blow to Spanish authority in the region.
Not long after that, one of history’s most celebrated privateers made his mark on the Pacific coast. Sir Francis Drake raided a merchant ship bound for Panama in 1579 near what is now called Drake Bay on the Osa Peninsula, a name the bay still carries today. Drake’s expedition was part of his broader circumnavigation of the globe, during which he systematically harassed Spanish interests along the Pacific coastline of the Americas. His stop in Costa Rica was brief but consequential, signaling that no stretch of the Spanish empire’s territory was beyond reach.
For much of the following century, the Caribbean coast of Costa Rica became a haven for English buccaneers, while the Pacific continued to see its share of raids. The colony was chronically underfunded and poorly defended. Because Spain largely neglected its Costa Rican outpost due to its lack of gold, silver, and slave labor, the few settlers had virtually no weapons with which to resist. This vulnerability made the country an attractive soft target compared to more heavily fortified Spanish strongholds elsewhere in the Americas.
The most dramatic episode in Costa Rica’s pirate history unfolded in the 1640s, when the stakes could not have been higher. A pirate army of some 600 men, led by Bartholomew Mansfield, set its sights on Cartago itself, marching inland toward the colonial capital. The Ticos managed to muster a defense.
When the invaders reached the small community of Ujarás, they found themselves outnumbered and were forced to retreat. The near-conquest became a founding legend. Locals attributed their salvation to the Virgin of Pilar, patron of the local church, an event that is still commemorated today.
The Caribbean coast faced further incursions in 1666, when English privateers connected to Captain Henry Morgan sailed up the Matina River in one of the most well-documented colonial-era raids. Spanish forces pushed them back, but the attack illustrated how both of Costa Rica’s coastlines were enmeshed in the broader imperial rivalry playing out across the hemisphere.
Resistance was not always mounted by Spanish soldiers alone. In 1684, indigenous communities in Nicoya also helped repel a pirate landing. Together, they successfully repelled the attack, with archers proving far more effective at range than the pirates’ firearms.
The threat eventually faded as the geopolitical landscape shifted. England’s focus turned toward its own North American colonies, reducing its appetite for Caribbean raiding, while later figures like Blackbeard were ultimately defeated by a combination of arms and economics. Following Costa Rican independence in 1821, the new government firmly closed the chapter on the pirate era.
What remains today are place names, legends, and the occasional archaeological surprise. Two shipwrecks near Cahuita National Park, long assumed to be the remnants of pirate battles, were recently confirmed through scientific analysis to be Danish slave trade vessels that sank in 1710, a sober reminder that Costa Rica’s maritime history is still yielding its secrets. The pirates are long gone, but Costa Rica still bears the marks of the age they defined.





