Tarifa Castle was built in 960 by the Abd-ar-Rahman III, Caliph of Córdoba. When Tarifa was taken over by the king of Castile, Sancho IV in 1292, the castle was handed over to Alonso Pérez de Guzmán for its defense. Pérez de Guzmán get the nickname of 'Good' (el Bueno) by refusing to hand over the castle in 1296 to the besieging forces of the Infante Don Juan, the rebellious brother of the king Sancho, and the Marinids, in exchange for the life of his son.
Due to the castle's irregular oblong shape, some believe it was built on the remains of a Roman fort. To the east, two high towers protect the castle - one is called Torre de Guzman El Bueno; the order for the Moors to kill Guzman's son was given from here. Outside the castle you can see a statue of the king who first reconquered the town from the Moors in 1292, Sancho IV. There's a statue of Guzman himself just over the road on the Alameda.
Recently refurbished, the castle is open to visitors. The coast and mountains of Morocco are visible from its towers.
References:The Broch of Gurness is an Iron Age broch village. Settlement here began sometime between 500 and 200 BC. At the centre of the settlement is a stone tower or broch, which once probably reached a height of around 10 metres. Its interior is divided into sections by upright slabs. The tower features two skins of drystone walls, with stone-floored galleries in between. These are accessed by steps. Stone ledges suggest that there was once an upper storey with a timber floor. The roof would have been thatched, surrounded by a wall walk linked by stairs to the ground floor. The broch features two hearths and a subterranean stone cistern with steps leading down into it. It is thought to have some religious significance, relating to an Iron Age cult of the underground.
The remains of the central tower are up to 3.6 metres high, and the stone walls are up to 4.1 metres thick.