 In 1016 they rebelled in Ceuta, claiming to be supporting the restoration of Hisham II.They took control of Málaga, then marched on Cordoba, taking it and executing Sulayman and his family.Ali ibn Hammud al-Nasir declared himself caliph, a position he held for two years.