About this place
Tarifa Castle guards the oldest quarter of Tarifa, the town sitting on the very southern tip of mainland Spain, exactly where the Atlantic meets the Mediterranean. The fortress rises right next to the harbour, surrounded by the narrow lanes of the old town, and has watched over this strategic strait between Europe and Africa for more than a thousand years.
What is the history behind the castle?
The stronghold was built in 960 on the orders of the Caliph of Córdoba, Abd ar-Rahman III, part of a wider effort to secure the caliphate's coastal defences along the strait. Attached to the main structure is a distinctive tower known as the Tower of Guzmán el Bueno, added in the 13th century, once the region had passed into Christian hands during the Reconquista. Right beside it stands the Church of Santa María, built on the site of a former mosque — two eras stacked on the same ground.
The castle earned its lasting place in Spanish history through the story of Alonso Pérez de Guzmán, the man the tower is named after. It was here that one of medieval Spain's most retold episodes unfolded, when the fortress's defender chose loyalty to his king over his own family — a story guides still recount to visitors walking the ramparts today.
The next major chapter came during the Peninsular War. Between 1811 and 1812, Tarifa and its castle were besieged repeatedly by Napoleon's French forces. The town was defended by roughly 3,000 troops, including 1,200 British soldiers, with the fortifications reinforced under British engineer Charles Holloway. The defence held — the French never took the town, turning Tarifa into a symbol of resistance in this part of Andalusia.
What will you see on site?
The castle survives in good condition and is open today as a historic monument. Walking its defensive walls, visitors can trace the different building phases layered on top of each other — Arab foundations, the medieval tower, and reinforcements added during the Napoleonic era. From the battlements, the view stretches across the Strait of Gibraltar, and on a clear day, all the way to the Moroccan coast on the other side. It's one of the few spots in Europe where you can see another continent with the naked eye.
The old town wrapped around the castle is worth exploring on its own — whitewashed houses, narrow streets and a working fishing harbour give Tarifa a distinctly Andalusian character, a striking contrast to the world-famous kitesurfing beaches just outside town.
How do you get there?
The castle sits right in the centre of Tarifa's old town, next to the harbour where ferries depart for Tangier, Morocco. It's a short walk from anywhere in the old quarter. Tarifa lies on the N-340/A-48 road connecting it to Cádiz and Algeciras, both served by regular bus links.
When is the best time to visit?
Spring and autumn bring the most comfortable conditions, with milder temperatures than the height of summer while Tarifa's famously strong winds — the draw for windsurfers and kitesurfers — are still blowing. In summer, the town gets considerably busier with tourists and water-sports crowds.
Frequently asked questions
Who built Tarifa Castle? The fortress was built in 960 on the orders of the Caliph of Córdoba, Abd ar-Rahman III.
Where does the Tower of Guzmán el Bueno get its name? The tower, added in the 13th century, is named after Alonso Pérez de Guzmán, the castle's defender whose conduct during a siege became one of the enduring symbols of Spanish history.
Can you visit the castle? Yes, the fortress is well preserved and open to the public as a historic monument.
What can you see from the castle walls? The ramparts offer views over the Strait of Gibraltar and the harbour, and on clear days, the coast of Morocco in the distance.
Nearby places
Earn badges for the places you visit
Download NextOnTrip, discover new places and check off your trails.