هشام المؤيد بالله
After he had withdrawn to Algeciras, Sulayman managed to reconquer Cordoba in 1013 with Berber help and depose Hisham II. His policy of concessions to Berbers, Arab and "slave" troops and leaders, effectively reduced the caliphate's authority to only Córdoba. In the meantime the Zirids of Granada formed an independent dynasty. In 1016 Córdoba was attacked by a large Berber army under the Hammudid governor of Ceuta, Ali ibn Hammud al-Nasir, who conquered it on 1 July 1016. Sulayman was imprisoned and, shortly afterwards, beheaded.