
Castillo de la Peña de Ardales rises dramatically from a rocky promontory at 496 meters above the town of Ardales in Málaga province, with settlement layers dating from prehistory through the Islamic period. The castle itself was constructed in 883 AD by Mozarabic rebel leader Umar ibn Hafsun, who enclosed the natural rock perimeter with defensive walls and towers, crowned by a fortified square tower overlooking the settlement. The fortress dominated the town below and controlled a natural gateway toward Málaga through the Sierra de Peñarrubia. After centuries of alternating Moorish and Christian control, it was definitively conquered in 1453–1454 by Juan Ramírez de Guzmán. Today, the castle preserves portions of its medieval walls, the Gate of Justice, and remnants of the heavily damaged Alcázar, offering tangible evidence of medieval Andalusian military architecture and strategic frontier politics.