The Alcazaba of Badajoz is an ancient Moorish citadel in Badajoz, Extremadura, western Spain. The alcazaba as it now appears was built by the Almohads in the 12th century, although it probably existed from the 9th century, when Badajoz was founded. In the 11th and 12th centuries it was the residence of the rulers of the taifa of Badajoz.