About this place
Castillo de Alhabar is a medieval fortress in the town of Cambil, in the province of Jaén, set in the Sierra Mágina mountains of Andalusia.
Where does the castle stand?
Alhabar sits on one of two rocky ridges separated by a ravine that a river has carved through Cambil over centuries. Facing it, on the opposite side of the gorge, stands its twin — the Castillo de Cambil. This arrangement of two separate strongholds guarding the same narrow passage was typical of frontier towns in the area: Cambil itself originally grew as two distinct settlements, each watched over by its own fortress.
Who built it, and why?
The fortifications on this site are linked to the Nasrid rulers of the Emirate of Granada, and the earliest written references to the castles of Cambil and Alhabar date back to the beginning of the 14th century. Their purpose was to guard the border between the Muslim emirate of Granada and the Christian kingdom of Castile, represented locally by the city of Jaén. Given how little space the rocky summit offered, the original structure may have amounted to little more than modest defensive walls reinforcing the natural barrier of the rock itself.
How did control of the castle shift over time?
Sitting right on the frontier meant the fortress changed hands more than once. Infante Don Pedro captured both castles for Castile as early as 1315, only for the area to fall back under Muslim rule in 1365. Retaking these strategic strongholds for good turned out to be one of the harder episodes of the border campaigns: the siege drew a force of roughly six thousand men from Jaén, and artillery was deployed here on a scale still uncommon on the Iberian Peninsula at that time. Following the conquest, on 21 September 1486, the Catholic Monarchs granted the castles of Cambil and Alhabar, along with the surrounding lands, to the city of Jaén. That arrangement held until 19 April 1558, when King Philip II granted Cambil independent municipal status, freeing it from Jaén's jurisdiction.
What is left to see today?
The site survives only as a ruin — fragments of the old walls and structures remain, speaking more to the place's former strategic importance than to any architectural grandeur. Where sentries once kept watch over the surrounding land, a viewpoint has now been set up on the summit. It looks out over the valley and the surrounding peaks of Sierra Mágina, giving visitors some sense of the field of vision the old garrison relied on to guard the border.
Who is this visit best suited for?
Castillo de Alhabar appeals mainly to travellers interested in the medieval frontier history between Castile and Granada, as well as hikers drawn to the rocky terrain of Sierra Mágina. Because the Castillo de Cambil stands so close by, the two ruins are easy to combine into a single walking route, one that also traces the town's old layout as two settlements once split by the ravine.
Frequently asked questions
Where is Castillo de Alhabar located? In the town of Cambil, in the province of Jaén, perched on a rocky ridge in the Sierra Mágina mountains of Andalusia.
Who built the castle? The fortification is associated with the Nasrid rulers of the Emirate of Granada, and it is first documented in historical records from 1315.
What major historical events are tied to this site? The castle changed hands more than once during the Castile–Granada border wars, until the Catholic Monarchs granted it to the city of Jaén in 1486; Cambil later gained independence from Jaén's rule in 1558.
What remains of the original fortress? Only ruins remain today, and a viewpoint has been set up on the summit offering views over the valley and surrounding mountains.
Is it worth visiting alongside Castillo de Cambil? Yes — the two fortresses stand on neighbouring rocks above the same ravine, so seeing them together gives a fuller picture of the town's former defensive layout.
Nearby places
Earn badges for the places you visit
Download NextOnTrip, discover new places and check off your trails.