About this place
Castillo de Zagra is a medieval fortress overlooking the small town of Zagra in the province of Granada, Andalusia. Its ruins crown a rocky hill roughly 805 meters above sea level, just east of the town near the municipal cemetery. This was once a meeting point between two worlds — Muslim and Christian Spain — and today it offers one of the finest views over the hills surrounding Loja.
Where does the name Zagra come from?
Both the town and the castle take their name from Arabic, meaning "rock," "crag," or "border" — a fitting description of the site's rugged, frontier character. The settlement's real growth began in the 10th century, when Muslim settlers arrived and reshaped the area with a distinctly defensive layout. From then on, Zagra became a key outpost along the shifting border between the Christian kingdoms and Muslim-ruled Granada.
How is the castle laid out?
The fortress is made up of two clearly separate sections. The lower enclosure, built on the slope facing today's town, once housed the civilian population. Higher up, at the very top of the hill, stood the alcazaba — the military stronghold that formed the defensive core of the whole complex. This two-tier layout, typical of Andalusian border castles, allowed the site to shelter residents while keeping tight military control over the surrounding territory.
What is the castle's history?
From the mid-14th century onward, Zagra and the nearby castle of Cesna formed part of a defensive network guarding this contested frontier. Tensions escalated sharply after the Christian conquest of Priego in 1341, turning the area into a zone of near-constant skirmishing. In 1362, Castilian troops under King Peter I ("the Cruel") managed to capture the castle, but the victory was short-lived — Muslim forces retook it within days. Zagra did not pass permanently into Christian hands until 1486, shortly after the fall of nearby Loja, one of the final steps before the collapse of the Emirate of Granada.
What condition is the castle in today?
After centuries of neglect, the fortress now stands in a state of progressive ruin, though this only adds to its dramatic character. Since April 2003, the castle has been municipal property, and several archaeological excavations have since taken place, shedding new light on its history and construction phases.
How do you get there?
The castle sits on a hill directly above the center of Zagra, in the Loja district of Granada province. The easiest way to reach it is by car, via the local roads connecting the town to Loja and Granada. From there, a footpath climbs through rocky terrain to the summit — a modest but rewarding hike that opens up sweeping views over the valley below.
What is there to see on site?
Beyond the walls and the remains of the alcazaba, it's worth tracing the outline of the two defensive zones, still clearly visible on the ground, and taking in the view of the town spread out below the hill. It's also a good spot to get a feel for what life looked like on this Andalusian frontier centuries ago.
When is the best time to visit?
Spring and autumn are the best seasons to visit, when temperatures are milder and the climb up the hill is far more comfortable than during the full heat of an Andalusian summer.
Frequently asked questions
Can you go inside the castle? The castle is in ruins and can be freely explored on foot — there are no ticket booths or permanent visitor facilities on site.
How long does a visit take? A full visit, including the walk up and back down the hill, usually takes between 45 minutes and an hour.
Do you need a car to get there? Yes, driving is by far the most practical way to reach Zagra, since public transport connections to the town are limited.
Are there other attractions nearby? Yes, the Loja area is home to several other border castles and picturesque Andalusian villages that can easily be combined into a single day trip.
Nearby places
Earn badges for the places you visit
Download NextOnTrip, discover new places and check off your trails.