The Alcazaba, with its 1430 m. walled perimeter is Spain’s second-largest Muslim construction, after the Alhambra Palace in Granada. It was built at the behest of Abderrahman III in the tenth century after the founding of the city. It is a stronghold which housed three campuses; the first two Muslims and one Christian, last built after the conquest of the city by the Catholic Monarchs, which occurred in 1489.
The fortress is situated on a hill, overlooking the old centre of the city, the medina. In it, we find a first enclosure where there is a large garden and ponds constructed during the Muslim period.
The second area, the vast palatial residence of King Almotacín, stood during the eleventh century. This consisted of a public area, where today are the caliphate wells of the tenth century, a Christian arch of the 16th century. Finally, is the last enclosure of the fortress, Christian, and ordered to be built by the Catholic Monarchs, after the taking of the city. It is a Christian castle within the Muslim fortification.
https://www.turismodealmeria.org/en/motivo-tematico/the-alcazaba-fortress/