The Castle located on Mount Gibralfaro, a foothill located in the city center of Málaga, has been the site of fortifications since the Phoenicians. The castle was built in 929AD by Abd-al-Rahman III, Caliph of Cordoba, on a former Phoenician enclosure and lighthouse. The name is said to be derived from the Phoenician word for light, Jbel-Faro, meaning “Rock of Light”. Yusef I, Sultan of Granada, enlarged it at the beginning of the 14th century, also adding the double wall connecting down to the Alcazaba.
The castle is famous for its three-month siege by the Catholic monarchs, Ferdinand and Isabella, which ended when hunger forced the Malagueños to surrender. Ferdinand occupied the site, while his queen took up residence in the town. This was the first battle in which gunpowder was used by both sides.