Malaga. He headed for Cordoba at the head of a large army, accompanied by his brother Al-Qāsīm al-Ma'mūn. Caliph Sulayman was quickly defeated, taken prisoner and then put to death, and `Alī proclaimed himself caliph with the title of Al-Nāsir "The Victorious" (July 7, 1016). Al-Qāsīm al-Ma’mūn Having become unpopular, on April 17, 1018 `Alī was discovered murdered in his bath. His brother al-Qāsīm becomes caliph with the title of al-Ma'mūn "He who is trusted" after `Abd al-Rahman briefly attempts to restore the Umayyad dynasty. Al-Qāsīm was overthrown by his nephew Yahyā, son `Alī ben Hammūd (1021). He had received from his father, the government of Tangier. He crossed into Spain with the Ghomaras troops who had put his father in power, to contest it with his uncle. Yahyā al-Mu`talī In 1018, upon the death of his father Ali bin Hammud al-Nasir, he was succeeded by his uncle Al-Qāsīm. Yahyā did not accept this appointment. The quarrel between the two parents was to be prolonged when Yahyā gave the order to strangle his uncle held captive in Malaga on suspicion of preparing a coup. Yahyā then reigned over Malaga, Algeciras, Ceuta, but in Cordoba the inhabitants chose as caliph `Abd al-Rahman brother of the Umayyad Muhammad Al-Mahdī. `Abd al-Rahman took the title of Al-Mustazhir. Yahyā was no longer caliph, but he continued his rule in Malaga and Algeciras. At the end of 1035, Yahyā felt strong enough to take revenge on the Cadi of Seville. He left to lay siege to that city. In this hasty campaign, Yahyā is killed (1035). The Hammudite emirs The news of Yahyā's death caused unspeakable joy in both Seville and Cordoba, and the cadi had nothing more to fear from the Hammudites. Idrīs a brother of Yahyā was indeed proclaimed caliph at Malaga under the name of Al-Muta'ayyid and at the same time his cousin was proclaimed caliph at Algeciras under the name of Al-Mahdī. The caliphate was then established in the city of Al-Mu'min. During this period the power of the Zirid amirs of Granada, vassals of the Hammudites, developed thanks, among other things, to the wise policy of the Jewish vizier Samuel ibn Nagrela. Idrīs died of illness in 1039. Two candidates were vying for the succession: Yahyā al-Qa`im son of Idrīs and his first cousin Al-Hassan al-Mustansī son of Yahyā al-Mu`talī. The latter was in Africa and when his fleet appeared