 As a tower-prison was also used in the 18th and 19th centuries, as demonstrated by the numerous "graffiti" inscribed there by the p2.The building of the palace – mostly made between 1065 and 1081— was ordered by Abú Ja'far Ahmad ibn Sulaymán al-Muqtadir Billah, known by his honorary title of Al-Muqtadir (The powerful), second monarch of the Banu Hud dynasty, as a symbol of the power achieved by the Taifa of Zaragoza in the second half of the 11th century.The sultan himself called his palace "Qasr al-Surur" (Palace of the Joy) and to the throne room which he presided the receptions and embassies of the "Maylis al-Dahab" (Golden Hall) as it is testified in the following verses of the Sultan self