OneStopList

Family trees

Hammudid Dynasty Family Tree Explained

Updated November 22, 2026

The Hammudid dynasty was a short-lived Berber Muslim ruling house that controlled the Caliphate of Córdoba and later the taifa of Málaga in 11th-century al-Andalus. Its family tree descends from Ali ibn Hammud al-Nasir, who seized the caliphate in 1016, and includes at least ten named members across four generations.

Origins and Rise to Power

The Hammudids claimed descent from the Idrisid dynasty of Morocco, making them Sharifs (descendants of the Prophet Muhammad through his grandson Hasan). Their power base was in the Moroccan city of Ceuta, which they governed on behalf of the Umayyad Caliphate of Córdoba. In 1016, Ali ibn Hammud al-Nasir exploited the political chaos following the death of the Umayyad caliph Hisham II and marched into the Iberian Peninsula, capturing Córdoba and declaring himself caliph. This made him the first non-Umayyad to rule the caliphate, though his legitimacy was contested from the start.

The Founding Generation: Ali and Al-Qasim

Ali ibn Hammud al-Nasir (c. 965–1018) was the dynasty’s founder. He had two known brothers: Al-Qasim al-Ma’mun (962–1025) and another brother whose name is not consistently recorded. Ali ruled as caliph for two years before he was assassinated in 1018, reportedly by a palace slave. His brother Al-Qasim al-Ma’mun then took power, ruling Córdoba intermittently until 1023, when he was deposed and later killed. Al-Qasim’s reign was marked by constant infighting with his nephews, which fractured the dynasty.

Key Branch: The Line of Yahya

Ali ibn Hammud had three sons who appear in the family tree: Idrīs I al-Mutaʾayyad, Yahya ibn Ali ibn Hammud al-Mu’tali, and Hasan al-Mustansir. Yahya (995–1035) was the most prominent. After his uncle Al-Qasim’s first deposition in 1021, Yahya seized Córdoba and ruled as caliph from 1021 to 1023, then again briefly in 1025. He was forced out by popular uprisings and Umayyad restoration attempts, and he retreated to Málaga, where he established a taifa kingdom that his descendants would rule for decades. Yahya’s brother Idrīs I al-Mutaʾayyad also became ruler of Málaga after Yahya’s death, and their sibling Hasan al-Mustansir appears as a less documented figure, possibly a co-ruler or governor.

Later Generations and the Málaga Taifa

The dynasty continued through Yahya’s son Idrīs II ibn Yaḥyā I al-ʿAlī al-Ẓāfir (1030–1055), who inherited the taifa of Málaga. Idrīs II had a son named Muḥammad II ibn Idrīs, who ruled Málaga until his death around 1060. Meanwhile, Idrīs I al-Mutaʾayyad had his own line: his son Muḥammad ibn Idrīs (died c. 1050) and another son Yaḥyā II Idrīs al-Qāʾim. Yaḥyā II became ruler of Málaga after Muḥammad II, and his son Idris al-Sami Billah was the last Hammudid ruler of Málaga, losing the city to the Zirids of Granada in 1057. The family tree thus shows two parallel branches descending from Ali’s sons, which explains the frequent power struggles within the dynasty.

Genealogical Chart and Relationships

To summarize the verified family relationships:

  • Ali ibn Hammud al-Nasir (965–1018) – founder; father of Idrīs I, Yahya, and Hasan al-Mustansir.
  • Al-Qasim al-Ma’mun (962–1025) – brother of Ali; no children listed.
  • Yahya ibn Ali (995–1035) – son of Ali; father of Idrīs II.
  • Idrīs I al-Mutaʾayyad – son of Ali; father of Muḥammad ibn Idrīs and Yaḥyā II.
  • Hasan al-Mustansir – son of Ali; no children listed.
  • Idrīs II (1030–1055) – son of Yahya; father of Muḥammad II.
  • Muḥammad II ibn Idrīs (died 1060) – son of Idrīs II.
  • Muḥammad ibn Idrīs (died 1050) – son of Idrīs I.
  • Yaḥyā II Idrīs al-Qāʾim – son of Idrīs I; father of Idris al-Sami Billah.
  • Idris al-Sami Billah – son of Yaḥyā II; last ruler.

Note that the family tree is not linear; it branches after Ali, with two competing lines. This branching is why the dynasty had multiple claimants to the throne simultaneously.

Political Context and Downfall

The Hammudids came to power during the Fitna of al-Andalus, a civil war that dismantled the Umayyad Caliphate after 1009. Their rule was never stable: they faced revolts from the Berber factions that supported them, pressure from the Christian kingdoms to the north, and internal rivalries. The taifa of Málaga, their stronghold, was a coastal city with economic importance, but it was small compared to Córdoba or Seville. By the mid-1050s, the Zirid ruler Badis ibn Habus of Granada conquered Málaga, ending Hammudid rule. The last Hammudid, Idris al-Sami Billah, was exiled or killed, and the family faded from history.

Legacy and Misconceptions

A common misconception is that the Hammudids were a single unified dynasty ruling Córdoba for a long period. In reality, their control over Córdoba lasted only about seven years total (1016–1023), and they are better known for their longer tenure in Málaga. Another misconception is that they were simply a continuation of the Umayyads; they were actually a separate Berber dynasty that claimed Idrisid ancestry. Their legacy is significant in that they were among the first to break the Umayyad monopoly on the caliphal title, setting a precedent for other taifa rulers to claim caliphal status. The family tree also illustrates how medieval Islamic dynasties often fragmented into competing branches, leading to rapid succession changes.

Frequently Asked Questions

Who was the founder of the Hammudid dynasty? Ali ibn Hammud al-Nasir, who took Córdoba in 1016 and declared himself caliph. He ruled until his assassination in 1018.

Did the Hammudids rule all of al-Andalus? No, they only controlled Córdoba briefly and later the taifa of Málaga. Most of al-Andalus was divided among other taifa kingdoms.

Why did the dynasty collapse so quickly? Internal family feuds, military defeats, and the rise of stronger taifas like Seville and Granada led to their loss of Málaga in 1057.

Are the Hammudids related to the Idrisids of Morocco? They claimed descent from the Idrisids, who were Sharifs, but this claim is not universally accepted by historians. It was used to legitimize their rule.

What happened to the last Hammudid ruler? Idris al-Sami Billah lost Málaga to the Zirids and disappears from historical records; his fate is unknown.

Related

How pages are sourced and corrected: Sources and editorial policy.