About this place
Castillo de San Pedro is a coastal fortress in the municipality of Níjar, tucked into the secluded cove of Cala de San Pedro within the Cabo de Gata-Níjar Natural Park. It ranks among the most striking and hardest-to-reach landmarks on the Almería coastline, with its ruined walls rising directly above the beach between the villages of Las Negras and Agua Amarga.
Where exactly is the castle located?
Castillo de San Pedro sits on the beach that shares its name, right in the middle of the Cabo de Gata-Níjar Natural Park — one of the best-preserved stretches of wild coast in Spain. No road reaches the cove, which is why the site has kept such an untouched, cut-off-from-civilisation feel over the centuries. Visitors reach it on foot along the coastal path or by boat from the sea.
What is the history behind the fortress?
The earliest record of a watchtower on this spot dates to the 16th century. It was raised on the remains of an earlier Muslim-era defensive structure and formed part of the Kingdom of Granada's coastal surveillance network, built to guard the shore against pirate raids and Morisco uprisings.
The earthquake of 31 December 1658 badly damaged the tower. It was rebuilt and enlarged in 1695 with the addition of an artillery platform, considerably strengthening its defensive capacity.
The decisive transformation came in the mid-18th century, when engineer Felipe Crame drew up a project that turned the old tower into a full castle able to hold ten artillery pieces. This upgrade made Castillo de San Pedro the second most important fortification in the entire Cabo de Gata defensive system, surpassed only by the Fort of San José.
What role did it play in coastal defence?
By 1770 the fortress was part of a wider coastal defence network built to counter raids by Barbary pirates, who had threatened Almería's shoreline settlements for centuries. As naval weaponry evolved and military strategy shifted, the castle gradually lost its strategic relevance and was ultimately abandoned during the 19th century.
Why is it worth visiting today?
Today Castillo de San Pedro stands as an evocative ruin, prized by travellers seeking the wilder, quieter corners of Cabo de Gata. It has been recognised as a heritage site of cultural interest, underlining its value as a physical record of centuries-long struggle to control the Almería coast. The setting — rugged cliffs, clear water, and an isolated beach — pairs historical weight with the natural beauty of the surrounding park.
The path leading to the cove forms part of the coastal hiking network of Cabo de Gata-Níjar, popular with trekkers exploring the shoreline on foot. Anyone planning a visit should bring plenty of water and sun protection, since the terrain is semi-desert and there is no tourist infrastructure along the way.
Frequently Asked Questions
Can you drive to the castle? No, there is no vehicle access to Cala de San Pedro. The site can only be reached on foot via the coastal trail or by boat.
Who built Castillo de San Pedro? Its present form dates to the mid-18th century, when engineer Felipe Crame expanded a much older watchtower — one rooted in a Muslim-era structure and first recorded in the 16th century — into a full castle.
What was the fortress used for? It defended the Cabo de Gata coast against Barbary pirate raids and formed part of Spain's 18th-century coastal defence system.
Is the castle inside the natural park? Yes, it lies within the Cabo de Gata-Níjar Natural Park, on Cala de San Pedro beach, between Las Negras and Agua Amarga.
Nearby places
Earn badges for the places you visit
Download NextOnTrip, discover new places and check off your trails.