OneStopList

Family trees

Mazyadid Dynasty Family Tree Explained

Updated November 22, 2026

The Mazyadid dynasty was a medieval ruling house of Shirvan, a region in the eastern Caucasus, and its family tree runs from Haytham ibn Khalid in the 9th century through several generations of Shirvanshahs, ending with Shamkuyya in the 11th century. The dynasty is also known as the Shirvanshahs, though the Mazyadid line specifically refers to the branch descended from Haytham ibn Khalid.

Origins and Background

The Mazyadids emerged in the late 9th century when the Abbasid Caliphate’s authority in the Caucasus weakened, allowing local rulers to assert greater independence. The dynasty’s name comes from its claimed ancestor, Mazyad, though the earliest clearly attested figure is Haytham ibn Khalid, who likely ruled in the mid-9th century. His son Muhammad I of Shirvan is the first ruler explicitly titled Shirvanshah, meaning “king of Shirvan.” The family governed the strategic coastal and mountain territories west of the Caspian Sea, controlling trade routes and defending against raids from the Khazars and later the Rus.

Key Figures and Generations

The family tree, based on standard historical sources, shows a clear line of succession:

  • Haytham ibn Khalid – founder of the dynasty; father of Muhammad I.
  • Muhammad I of Shirvan (r. c. 900–?) – son of Haytham ibn Khalid; father of Haytham II.
  • Haytham II Shirvanshah (c. 900–1000) – son of Muhammad I; father of Shirvanshah Ali.
  • Shirvanshah Ali (r. 900–917) – son of Haytham II; his reign is short and poorly documented.
  • Muhammad of Layzan (d. 917) – a separate branch; father of Abu Tahir Yazid.
  • Abu Tahir Yazid (r. 917–948) – son of Muhammad of Layzan; father of Muhammad II.
  • Muhammad II of Shirvan (r. ?–956) – son of Abu Tahir Yazid; father of Ahmad of Shirvan.
  • Ahmad of Shirvan (r. ?–981) – son of Muhammad II; father of Muhammad III and Yazid II.
  • Muhammad III of Shirvan (r. ?–991) – son of Ahmad; his reign ended with his death.
  • Yazid II (r. ?–1027) – son of Ahmad; father of Shamkuyya.
  • Shamkuyya (d. 1067) – daughter of Yazid II; the last attested member of the Mazyadid line.

Note that the dates are approximate and vary among historians; the above are based on the most commonly cited ranges.

How the Succession Worked

Succession in the Mazyadid dynasty was not strictly primogeniture. While sons often succeeded fathers, the actual transition was frequently contested. Rulers sometimes appointed co-rulers or designated heirs, and the powerful local nobility (the “kings” of neighboring regions like Layzan) could influence who took the throne. The title Shirvanshah was hereditary, but the family also intermarried with other Caucasian dynasties, which sometimes led to claims through female lines. For example, Shamkuyya, as a woman, did not rule herself but her existence shows that women could carry the dynastic claim forward.

Relations with Neighboring Powers

The Mazyadids navigated a volatile geopolitical landscape. To the south, the Sajid and later the Salarid dynasties of Azerbaijan periodically demanded tribute. To the north, the Khazar Khaganate and later the Rus raiders threatened Shirvan’s Caspian coast. The dynasty maintained a degree of autonomy by playing these powers against each other. In 917, Shirvanshah Ali was killed in a battle against the Khazars, and his successor Abu Tahir Yazid (from the Layzan branch) moved the capital to Shamakhi, which became the dynasty’s main center. The Mazyadids also supported the local Christian population, and there is evidence of church construction during their rule.

Common Misconceptions

A frequent error is to confuse the Mazyadids with the later Kasranid dynasty, which also used the title Shirvanshah. The Kasranids, who ruled from the 11th to the 16th century, were a separate lineage, though they may have claimed Mazyadid ancestry to legitimize their rule. Another misconception is that the Mazyadids were a single continuous father-to-son line. In fact, the line splits: after Shirvanshah Ali (son of Haytham II) died, the throne passed to Abu Tahir Yazid, who was from a cadet branch descended from Muhammad of Layzan. This means the dynasty’s family tree is not a simple straight line but a branching tree with two main stems that later merge again through Ahmad of Shirvan, who descended from Abu Tahir Yazid.

Frequently Asked Questions

Who was the founder of the Mazyadid dynasty? The earliest attested ancestor is Haytham ibn Khalid, though the dynasty’s name suggests a legendary forebear named Mazyad. Haytham’s son Muhammad I is the first ruler to bear the title Shirvanshah.

How long did the Mazyadids rule? From the late 9th century to the early 11th century, roughly 150 years. The last known member, Shamkuyya, died in 1067, but the dynasty’s effective rule ended earlier, around the time of Yazid II’s death in 1027.

Why did the Mazyadid dynasty end? The dynasty weakened due to internal strife and external pressures from the Seljuk Turks, who began to dominate the Caucasus in the mid-11th century. The Kasranids, possibly a related family, eventually took over Shirvan.

Was there a female ruler in the Mazyadid dynasty? No woman ruled as Shirvanshah. Shamkuyya, the last known member, was a daughter of Yazid II, but she did not hold the throne; her role was likely to carry the family’s claim through marriage.

What is the difference between the Mazyadids and the Shirvanshahs? The term Shirvanshah is a title used by several dynasties over centuries. The Mazyadids were one such dynasty, specifically the one founded by Haytham ibn Khalid. Later dynasties, like the Kasranids, also used the title but were not Mazyadids.

Legacy and Historical Sources

Our knowledge of the Mazyadid family tree comes from medieval Muslim historians such as al-Tabari, Ibn al-Athir, and the local historian al-Bakuvi, who wrote a history of Shirvan. Coins minted by the dynasty also provide evidence of their reigns and titles. The Mazyadids left a lasting mark on the region’s culture: they promoted Persian literature and architecture, and the city of Shamakhi flourished under their patronage. Even after their political decline, the memory of the Mazyadids persisted as a symbol of Shirvan’s ancient sovereignty.

Related

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