The Alcazaba of Malaga (from the Arabic al-Qasbah, in Arabic: قصبة, meaning ‘citadel’) is a palace and fortress built by the Taifa of the Hammudites in the 11th century in the Andalusian city of Malaga. Although it is linked to Gibralfaro Castle, the two fortifications are two distinct monuments from different eras.
Málaga's Alcazaba was built on the remains of a Roman fortress by the Taifa of Granada around the 11th century, during the reign of Badis ben Habus. The fortress protected the province of Granada, which was coveted by the Christians. In addition to its defensive role, the Alcazaba was the residence of the city's governor during the Muslim era. Following the capture of Málaga by the Catholic Monarchs in 1487, several kings lived here, including Philip IV and Charles III of Spain.
Source: (Wikipedia)