The San Juan River, which drains Lake Nicaragua (Cocibolca) into the Caribbean Sea, was during the colonial period one of the most strategic waterways in all of the Americas. Through it, the riches that reached Granada —one of the most prosperous cities in the region— could leave toward the Caribbean, and, conversely, any enemy who came up the river from the sea could reach the heart of Nicaragua. The river was at once a commercial artery and a dangerous open flank.
During the 16th and 17th centuries, pirates, buccaneers and privateers —English, French and Dutch— discovered that by coming up the San Juan they could attack and sack Granada, which they did on several devastating occasions. These assaults, which left the city in ruins and its population terrified, showed the urgent need to fortify the river to block the way to the invaders. The defense of the San Juan route became a priority for the Spanish crown in the region.
The point chosen to build the main defense was a bend in the river dominated by a hill, beside some rapids (the Raudal del Diablo, the Devil's Rapids) that forced vessels to slow down, making them vulnerable. There, controlling the river's obligatory passage, the Fortress of the Immaculate Conception would be built, around which the town of El Castillo would be born. The very geography of the river dictated where to plant the bastion that would protect Nicaragua.
The Fortress of the Immaculate Conception was built between 1673 and 1675, by order of the Spanish colonial authorities, as a definitive response to the pirate sackings of Granada. Erected on the hill that dominates the San Juan River rapids, its location was of exceptional military value: from its bastions, the artillery could hit the vessels that, forced to slow down at the rapids, tried to come up the river. It was, in practice, a key that locked the way to the interior of Nicaragua.
The fortress was one of the crown's greatest building efforts in the region and became one of the most important fortifications in colonial Central America. Its thick walls, its bastions, its moat and its artillery made it a formidable stronghold, a symbol of Spanish defensive power on the isthmus. Around it a small settlement of soldiers, their families and townspeople gradually arose, the seed of today's town of El Castillo, which took its name precisely from the fort.
The fortress protected not only Granada, but the whole interoceanic route of the San Juan, which even then was glimpsed as a possible passage between the oceans. Throughout its history, control of the river and the fortress was disputed between Spain and Great Britain, and later the setting for the interoceanic canal projects that, for centuries, saw in the San Juan the natural route to join the Atlantic with the Pacific through Lake Nicaragua.
The fortress was the setting for heroic episodes that entered the history of Nicaragua. The most famous occurred in 1762, when a British fleet came up the San Juan River to attack the fort. In the midst of the siege the fortress commander died, and his daughter, the young Rafaela Herrera, barely nineteen, took on a decisive role in the defense. According to tradition, Rafaela fired the cannon that felled the enemy leader and kept up the morale of the defenders, helping to repel the British attack. Her feat made her a national heroine and a symbol of Nicaraguan valor.
Years later, in 1780, the fortress was again center stage during a great British expedition that sought to seize the San Juan River and cut the Spanish domains in two, opening a route toward the Pacific. In that campaign a young British naval officer took part who would in time become legendary: Horatio Nelson, future admiral and hero of Trafalgar. The British managed to take the fortress, but the expedition turned into a disaster because of tropical diseases and the harsh jungle conditions, which decimated the troops, including Nelson himself, who fell gravely ill.
These episodes —the defense by Rafaela Herrera and Nelson's ill-fated expedition— give the Fortress of the Immaculate Conception an uncommon historical depth. After independence, having lost its military function, the fortress remained as a stone witness to that era of pirates, sieges and empires vying for control of the river. Today, restored and turned into a museum, it's a Historical Heritage site of Nicaragua and the soul of El Castillo, a town that lives in the shadow of its castle and to the rhythm of the San Juan rapids.
After Central American independence from Spain in 1821, the fortress lost its original military function, but the San Juan River did not lose its strategic importance: on the contrary, it became the center of one of the great geopolitical obsessions of the 19th century, the search for an interoceanic route that would join the Atlantic and the Pacific through Lake Nicaragua. Engineers, diplomats and adventurers from around the world studied the layout of a canal that would use the San Juan and Cocibolca, and for decades Nicaragua competed with Panama to become the chosen passage.
The heyday of this route came with the California gold rush, in the mid-19th century, when thousands of US travelers crossed Nicaragua by the San Juan River and the lake to avoid the long overland journey or the detour around Cape Horn. The businessman Cornelius Vanderbilt organized a line of steamboats that came up the San Juan passing beside El Castillo, briefly turning the fortress and its town into witnesses to the mass transit of passengers between the two oceans, with improvised hotels and stopover services in the area.
In those same years, the US filibuster William Walker tried to seize Nicaragua (1855-1857) and came to control the transit route, including the area around the San Juan River, in one of the most turbulent episodes in the country's history. Walker's defeat by a Central American coalition returned control of the river to Nicaragua, but the dream of the canal did not fade: in the early 20th century, the United States seriously considered building it through Nicaragua before finally deciding on Panama, opened in 1914. El Castillo, with its silent fortress above the rapids, remained as a stone witness to all those ambitions that never came to be on its territory.
For much of the 20th century, the fortress remained an evocative ruin, visited by few travelers who ventured to the remote southeast of Nicaragua. Only in the last decades of the century were works undertaken to restore and consolidate its walls, bastions and structures, which allowed much of its original appearance to be recovered and the site museum that welcomes visitors today to be set up, with panels that tell the history of the fort, the role of Rafaela Herrera and Nelson's expedition.
The Fortress of the Immaculate Conception is today a National Historic Monument of Nicaragua and one of the best-preserved heritage sites of the Central American colonial strand, comparable in importance to other Caribbean fortifications such as those of Portobelo or Cartagena de Indias. Its value has also prompted initiatives and studies aimed at an eventual UNESCO nomination within the set of colonial fortifications of the San Juan River route.
The town of El Castillo, grown in the shadow of the fort, today keeps an economy based on fishing, the region's agriculture and, increasingly, nature and history tourism: it serves as the gateway to the Indio Maíz Biological Reserve and as an obligatory stop for those who sail the San Juan River between San Carlos and the Caribbean. Without streets for cars, with its stone waterfront and the constant roar of the rapids, El Castillo keeps a river way of life that seems frozen in time, while the fortress continues to watch, silent, over the passage of the river that for centuries wanted to be the gateway between two oceans.