The Hasanwayhid Dynasty: The Kurdish Lords of the Central Zagros (959–1015)
- Sherko Sabir

- 15 hours ago
- 13 min read
Introduction
For just over half a century, a Kurdish dynasty controlled one of the most strategically important mountain regions of the medieval Islamic world. The Hasanwayhids — Twelver Shia Muslim, drawn from the Barzikani Kurdish tribal confederation — ruled the central Zagros from roughly 959 to 1015, governing a principality that stretched from the Iranian plateau to the upper Tigris frontier. From their capital at Dinawar and their fortified mountain stronghold at Sarmaj near Bisotun, four generations of Hasanwayhid emirs presided over a network of Kurdish fortresses, tribal alliances, and trade routes that linked the Iranian Buyid heartlands to the Mesopotamian Jazira.
The dynasty's golden age came under the long reign of Badr ibn Hasanwayh (979–1014), one of the most celebrated Kurdish rulers of the medieval period. Contemporary chroniclers described Badr as just, pious, generous, and politically skilful — a Kurdish emir who built mosques and madrasas, regulated markets, sheltered Sunni and Shia scholars alike, paid pensions to the families of pilgrims who died on the hajj, and maintained an army of Kurdish tribal cavalry that the great Buyid Adud al-Dawla had once tried unsuccessfully to subdue.
Together with the Marwanids of Diyarbakir and the Shaddadids of the Caucasus, the Hasanwayhids form the third great Kurdish dynasty of the eleventh-century "Kurdish Intermezzo" — the era when Kurdish polities controlled vast stretches of the medieval Islamic world from the South Caucasus to the Persian Gulf. This is the story of the central Zagros branch of that Kurdish flowering.
Origins: The Barzikani Tribe and the Zagros Frontier
The Hasanwayhid dynasty rose from the Barzikani — one of the great Kurdish tribal confederations of the central Zagros mountains. The Barzikanis were settled across the rough country between Hamadan, Kermanshah, Dinawar, and Shahrazur — a region of pasturelands, deep valleys, and stone fortresses that had sheltered Kurdish tribes since well before the Islamic conquests. By the mid-tenth century, the Barzikanis had become one of the most powerful tribal groupings in the western Iranian highlands, and one of their leading houses would soon establish a dynasty.
The political backdrop of the Hasanwayhid emergence was the long collapse of Abbasid central authority. By the 940s the caliphate in Baghdad had become a ceremonial institution; real power in Iraq and western Iran passed to the Buyid dynasty — Daylamite Iranian rulers who had conquered Baghdad in 945 and divided their realm between cousins ruling from Shiraz, Rayy, and the Abbasid capital itself. Across the Zagros, this Buyid restructuring created opportunities for local Kurdish chiefs. One of these was the Barzikani warrior Hasanwayh ibn Husayn.
The Hasanwayhids were preceded in the central Zagros by another Kurdish tribal house known as the Aishanids ('Ishania), whose emirs Ghanim and Windad had usurped Abbasid authority in Dinawar, Hamadan, and Nahavand for around fifty years. By 960, however, this earlier Kurdish dynasty was disintegrating. The Aishanids' descendants could not hold their fortresses against Buyid pressure and rival Kurdish factions. One of those rivals was Hasanwayh — and into the political vacuum left by the Aishanid collapse, he would build a new Kurdish state.
The Founder: Hasanwayh ibn Husayn (c. 961–979)
Hasanwayh ibn Husayn — known in Arabic as Abu'l-Fawaris and in Kurdish as Mîr Hesnewî — was the dynasty's founder. The son of a Barzikani Kurdish chief named Husayn, Hasanwayh emerged as a regional power in the late 950s and early 960s by capturing a sequence of mountain fortresses across the central Zagros. By 961 CE — the date most commonly given for the dynasty's foundation — he controlled a network of strongholds that defined the territorial core of his principality.
Hasanwayh's political genius lay in his understanding of Buyid power. Rather than challenge the Buyids directly, he allied with them — supporting them against the Samanids of Khorasan, providing Kurdish cavalry for their campaigns, and gradually extracting recognition of his autonomy in return. Within a generation, his territory included Lorestan, Dinawar, Nahavand, Daquq, Shahrazur, and Hamadan. His influence reached Azerbaijan to the north and the Khuzestan plain to the south. Dinawar — a venerable city on the Iranian plateau, famous in earlier centuries as a centre of Hadith scholarship and Persian-Arabic learning — became his administrative capital.
Hasanwayh's relationship with the Buyids was tested but never broken. When the Buyid governor of Hamadan, Sahlan ibn Musafir, attempted to curb Hasanwayh's growing power, the Kurdish emir met him in battle and defeated him. The victory established the Hasanwayhid principle: tactical alliance with the Buyids, but never subordination. Across roughly two decades of rule, Hasanwayh extracted protection payments from those who lived around Hamadan, controlled the trade routes through the central Zagros, and built one of the most significant Kurdish principalities of the tenth-century Islamic world.
He died at his fortified mountain stronghold of Sarmaj — south of the great Achaemenid relief site at Bisotun — in 979 CE. The succession crisis that followed nearly destroyed the dynasty.
The Buyid Crisis and Adud al-Dawla's Intervention
When Hasanwayh died, his sons fell into civil war. The contest was not just internal: it drew in the great Buyid sultan Adud al-Dawla, who saw an opportunity to settle the question of Kurdish autonomy in the central Zagros once and for all. Adud al-Dawla sided with one of Hasanwayh's sons, Badr ibn Hasanwayh, and helped him eliminate his rivals.
The price was high. Adud al-Dawla had all of Hasanwayh's other sons executed, leaving Badr as the sole surviving heir. The Buyid sultan then formally appointed Badr as ruler of the Hasanwayhid principality — but as a Buyid client. The fratricide was brutal even by the standards of medieval Islamic dynastic succession, and it set the political terms under which the dynasty would survive: Hasanwayhid autonomy was preserved, but only within a Buyid framework, and only by paying the heaviest possible price in blood.
It was an inauspicious beginning for a thirty-five-year reign that would, against expectations, become the dynasty's golden age.
The Golden Age: Badr ibn Hasanwayh (979–1014)
Badr ibn Hasanwayh is one of the most celebrated rulers in medieval Kurdish history. Across his thirty-five-year reign, he transformed the Hasanwayhid principality from a frontier emirate into one of the most stable and culturally productive Kurdish states of the medieval Islamic world. Contemporary and near-contemporary sources — including Ibn al-Athir, Ibn Miskawayh, and the Persian chronicler Bayhaqi — describe Badr in extraordinary terms: just, pious, scholarly, generous, militarily skilled, and politically shrewd.
Territorial expansion. Under Badr, the Hasanwayhid state expanded to its largest extent. He added Shapur-Khwast, Borujerd, Ahwaz, Ilam, Kermanshah, and Hulwan to the dynasty's territories. He extended Hasanwayhid control across the Zagros from the Iranian plateau to the western foothills overlooking the Mesopotamian plain. At its peak, his principality bordered the Marwanid emirate of Diyar Bakr to the northwest and the Buyid heartland of Iraq to the south.
Public works and urban patronage. Badr was a builder. He constructed mosques and madrasas across his territory; he built hospitals and caravanserais; he laid out a profitable market in Hamadan whose revenues funded charitable endowments; he restored fortresses across the central Zagros. The mountain stronghold of Sarmaj, where his father had died, became an even more formidable fortress under his oversight. Dinawar, the capital, was reorganised and expanded.
Religious patronage. Although the Hasanwayhids were Twelver Shia in personal faith, Badr was famous for his patronage of scholars across the religious spectrum. He paid pensions to Sunni and Shia ulama alike, supported pilgrims to both Mecca and the Shia shrines of Iraq, and reportedly paid the families of pilgrims who died on the hajj road. His religious tolerance was a mark of Hasanwayhid governance: a Shia Kurdish dynasty that did not impose sectarian conformity on its predominantly Sunni subjects.
Military capacity. Like the Marwanids and Shaddadids, the Hasanwayhids relied on Kurdish tribal cavalry rather than Turkic ghilman. Badr's army was drawn from the Barzikani and allied Kurdish confederations, and it was reckoned among the most effective forces of the Zagros and northern Iranian plateau. He fought successful campaigns against rival Kurdish tribes — most importantly the Shadhanjan-led Annazids who would eventually succeed him — and maintained the dynasty's independence even as Buyid power began to fragment after the death of Adud al-Dawla in 983.
Political longevity. Badr's reign of roughly thirty-five years is one of the longest in medieval Kurdish dynastic history. When he died in 1014, the Hasanwayhid state was at its territorial and cultural peak. His death triggered a succession crisis that the dynasty would not survive.
End of the Dynasty: Hilal and Zahir (1014–1015)
Badr was succeeded by his son Hilal ibn Badr, but Hilal's reign was short and contested. Some sources record him primarily as a transitional figure between his father's long rule and the dynasty's collapse; others note that his power was already curtailed by Buyid intervention from the south and Annazid pressure from the west. Within a year of his accession, Hilal was either dead or pushed aside.
The throne passed to Hilal's son — Badr's grandson — Zahir ibn Hilal ibn Badr, who became the last Hasanwayhid emir. Zahir's reign lasted only a few months. The Buyid emir Shams al-Dawla expelled him from the dynasty's territories, and Zahir was killed shortly afterwards. The last Hasanwayhid is recorded as dying at Sarmaj — the same mountain fortress where Hasanwayh had died thirty-six years earlier — in 1015 CE, just as the first Seljuk Turkmen scouts were beginning to enter the central Zagros from the east.
The dynasty had survived just over half a century. The collapse was rapid, and the territorial inheritance was divided.
The Annazid Succession and the End of Kurdish Zagros Autonomy
The Hasanwayhids' immediate successors in the western and central Zagros were the Annazids — another Kurdish dynasty, this one drawn from the Shadhanjan tribal confederation. The Annazid founder Abu'l-Fath Muhammad ibn Annaz (d. 1010) had been a contemporary and rival of Badr ibn Hasanwayh; on the collapse of Hasanwayhid power his successors took over the western parts of the former Hasanwayhid realm, and the Annazid principality survived in various forms until 1117 — outlasting both the Marwanids and the Shaddadids.
The eastern parts of the former Hasanwayhid territory passed to the Buyids; the southern portions were taken by the Kakuyids, an Iranian Daylamite dynasty centred on Isfahan. Within a generation, the entire region — Hasanwayhid, Annazid, Buyid, Kakuyid alike — would be absorbed by the rising Seljuk empire under Tughril Beg. The era of independent Kurdish principalities in the Zagros was over by the mid-eleventh century, although Kurdish dynasties continued to rule on the western and northern frontiers (the Marwanids until 1085, the Shaddadids until 1199).
Cultural Legacy: Sarmaj, Dinawar, and Shia Patronage
The Hasanwayhid legacy survives in three distinct registers.
The mountain fortresses. Sarmaj — south of the Achaemenid relief site at Bisotun, on the route between Kermanshah and Hamadan — was the dynasty's most important fortified stronghold. Both Hasanwayh and Zahir died there. Although the fortress is in ruins today, the Sarmaj site remains a key archaeological reference point for medieval Kurdish military architecture, and its position guarding the central Zagros pass route is testament to Hasanwayhid strategic thinking.
Dinawar. Dinawar — the dynastic capital — had been a centre of Sunni Hadith scholarship in the eighth and ninth centuries before becoming the seat of a Shia Kurdish dynasty under Hasanwayh and Badr. The city's intellectual life under the Hasanwayhids was rich: madrasas, mosques, and scholarly endowments; pensions for ulama of multiple traditions; a regulated market that funded charitable trusts. Although Dinawar declined sharply after the Seljuk conquests and is now a ruined site (near Bisotun in Kermanshah Province), its medieval flourishing under the Hasanwayhids is documented in Persian and Arabic chronicles.
Twelver Shia patronage. The Hasanwayhids were the first major Kurdish dynasty to adopt Twelver Shia Islam as their personal religious commitment. This is historically significant: although later Kurdish dynasties (Ayyubid, Mamluk, modern Sunni Kurdish populations) would be predominantly Sunni, the Shia Kurdish Hasanwayhids were a precedent for the Shia Kurdish populations that survive today (notably in Iranian and Iraqi Kurdistan, and among groups like the Faili Kurds and the Kurdish populations of the Kermanshah-Ilam corridor). The Hasanwayhids demonstrated that Kurdish political identity and Twelver Shia confessional identity could coexist as the framework of a major medieval state.
Place in Kurdish History
The Hasanwayhids occupy a distinctive place in the Kurdish historical record. Together with the Marwanids of Diyarbakir, the Shaddadids of the Caucasus, the Annazid successors, and the early Ayyubids, they constitute the heart of the so-called "Kurdish Intermezzo" — the period from roughly 950 to 1150 CE when Kurdish dynasties dominated large parts of the medieval Islamic world.
Of these dynasties, the Hasanwayhids are notable for several reasons. First, they were the major Kurdish power of the central Zagros — the geographic heartland of the Kurdish-speaking populations of medieval and modern Iran. While the Marwanids ruled the western Mesopotamian frontier and the Shaddadids ruled the Caucasus, the Hasanwayhids held the mountainous core that has remained Kurdish in language and identity ever since. Second, they were Shia. Where most other Kurdish dynasties of the period were Sunni, the Hasanwayhids were committed Twelver Shias, and their tolerant patronage of Sunni and Shia scholars alike anticipated the religious pluralism of later medieval Kurdish polities. Third, their golden age under Badr ibn Hasanwayh is one of the longest, most stable, and most culturally productive reigns in medieval Kurdish dynastic history — comparable only to the Marwanid Nasr al-Dawla and the Shaddadid Abu'l-Aswar Shavur I.
For modern Kurdish identity, the Hasanwayhids matter as the dynasty of Kermanshah, Dinawar, and the Iranian Kurdish heartland. The cities they ruled — Kermanshah, Hamadan, Sulaymaniyah, Kirkuk — remain among the major Kurdish urban centres of the present day. The Barzikani tribal name survives in modern Kurdish onomastics. And the historical memory of Badr ibn Hasanwayh — pious, just, scholarly — has remained part of the Kurdish historiographical canon since the eleventh century.
Timeline
c. 959–961 CE — Hasanwayh ibn Husayn captures fortresses across the central Zagros and founds the dynasty. c. 961–970 — Hasanwayh consolidates control over Lorestan, Dinawar, Nahavand, Daquq, Shahrazur, and Hamadan; allies with the Buyids against the Samanids. c. 970s — Hasanwayh defeats the Buyid governor Sahlan ibn Musafir at Hamadan; influence extends into Azerbaijan. 979 — Death of Hasanwayh at the fortress of Sarmaj. 979–982 — Succession war among Hasanwayh's sons; Adud al-Dawla intervenes, executes all sons except Badr, appoints Badr as ruler. 983 — Death of Adud al-Dawla; Badr consolidates near-independent rule. c. 1000–1014 — Badr's territorial peak; the dynasty controls Shapur-Khwast, Borujerd, Ahwaz, Ilam, Kermanshah, and Hulwan in addition to its earlier territories. 1010 — Death of the rival Annazid founder Abu'l-Fath Muhammad ibn Annaz. 1014 — Death of Badr ibn Hasanwayh; Hilal ibn Badr succeeds. 1014–1015 — Hilal's brief reign; Zahir ibn Hilal succeeds. 1015 — Buyid Shams al-Dawla expels Zahir; Zahir killed; the dynasty ends at Sarmaj. Mid-eleventh century — Annazids, Buyids, and Kakuyids divide the former Hasanwayhid territory; the entire region eventually falls to the Seljuks under Tughril Beg.
Rulers of the Hasanwayhid Dynasty
Four Hasanwayhid emirs are documented across the dynasty's roughly fifty-five-year history. Kurdish-History.com hosts a biography of each.
Hasanwayh ibn Husayn, the founder — the Barzikani Kurdish chief whose fortress-by-fortress campaign across the central Zagros built the principality (c. 961–979). Badr ibn Hasanwayh, the great patron — the dynasty's longest-reigning emir, whose thirty-five-year rule represents the Hasanwayhid golden age (979–1014). Hilal ibn Badr, the brief successor — son of the great Badr, whose reign lasted only months before he was pushed aside (1014). Zahir ibn Hilal ibn Badr, the last Hasanwayhid — Badr's grandson, expelled by the Buyid Shams al-Dawla and killed at Sarmaj (1014–1015).
Q&A: Understanding the Hasanwayhid Dynasty
Were the Hasanwayhids Kurdish? Yes. The dynasty's founder Hasanwayh ibn Husayn came from the Barzikani Kurdish tribal confederation, and the Kurdish identity of the family is documented in Arabic and Persian primary sources (Ibn al-Athir, Ibn Miskawayh, Bayhaqi) as well as in modern academic scholarship including the Encyclopædia of Islam and the Encyclopædia Iranica. The Kurdish name Mîr Hesnewî for Hasanwayh, and the persistence of the Barzikani tribal name in Kurdish onomastics, both confirm the dynasty's Kurdish character.
Were the Hasanwayhids Sunni or Shia? Twelver Shia. The Hasanwayhids were the first major Kurdish dynasty to adopt Twelver Shia Islam as their personal religious commitment. They patronised both Sunni and Shia scholars and did not impose sectarian conformity on their subjects, but the dynasty's confessional identity was clearly Shia.
Where was Dinawar? Dinawar was a major medieval Iranian city on the central Zagros plateau, in what is now Kermanshah Province in western Iran. Once a celebrated centre of Hadith scholarship in the early Abbasid period, it became the Hasanwayhid administrative capital. Today it is a ruined archaeological site, but it remains an important reference point for medieval Kurdish history.
Who was Badr ibn Hasanwayh? The fourth-generation Hasanwayhid emir whose long reign (979–1014) is regarded as the dynasty's golden age. Badr is one of the most celebrated rulers in medieval Kurdish history — chronicled by Ibn al-Athir, Ibn Miskawayh, and Bayhaqi as a model of justice, piety, and good governance. He patronised scholars across sectarian lines, paid pensions to pilgrims, built mosques and markets, and maintained Hasanwayhid military strength against Buyid pressure for thirty-five years.
What ended the Hasanwayhid dynasty? A combination of internal succession crisis and external pressure. After Badr's death in 1014, his son Hilal ruled briefly before being pushed aside; his grandson Zahir lasted only a few months before being expelled and killed by the Buyid emir Shams al-Dawla in 1015. The territory was divided among the Annazids (a rival Kurdish dynasty), the Buyids, and the Kakuyids, and was ultimately absorbed by the Seljuk empire.
What is the relationship between the Hasanwayhids and the Annazids? The Annazids — drawn from the Shadhanjan Kurdish tribe — were rivals of the Hasanwayhids during the lifetime of Badr ibn Hasanwayh, and his successors. After the Hasanwayhid collapse in 1015, the Annazids took over the western parts of their territory and ruled in the central Zagros until 1117 — making the Annazids the longest-surviving of the Zagros Kurdish dynasties.
Why does Sarmaj matter? Sarmaj — south of Bisotun, on the Kermanshah-Hamadan road — was the principal Hasanwayhid fortress, a mountain stronghold that dominated the central Zagros pass route. Both the dynasty's founder Hasanwayh and its last ruler Zahir died there. The fortress is in ruins today but remains an important reference for medieval Kurdish military architecture.
What is the modern legacy of the Hasanwayhids? The Hasanwayhids matter for modern Kurdish identity in three ways. First, they were the dynasty of the Iranian Kurdish heartland — Kermanshah, Hamadan, Dinawar, the central Zagros — territory that remains predominantly Kurdish today. Second, they demonstrated that Kurdish political identity could be sustained alongside Twelver Shia confessional identity, anticipating the Shia Kurdish populations that survive in modern Iran and Iraq. Third, the reign of Badr ibn Hasanwayh remains a touchstone in Kurdish historiography for what just, pious, and culturally productive Kurdish governance could look like.
Conclusion
The Hasanwayhid dynasty was the great Kurdish polity of the medieval central Zagros — a half-century of Twelver Shia Kurdish rule across the mountains and plateaus that connect the Iranian heartland to Mesopotamia. From Hasanwayh ibn Husayn's seizure of fortresses across the Barzikani tribal lands in c. 961 to the death of his great-grandson Zahir at Sarmaj in 1015, four generations of Hasanwayhid emirs governed one of the most strategically vital regions of the medieval Islamic world.
The dynasty's golden age under Badr ibn Hasanwayh is one of the great achievements of medieval Kurdish history. For thirty-five years Badr governed a state whose justice, religious tolerance, public works, and military power were celebrated across the Islamic world. He was succeeded by a son and grandson whose brief reigns could not survive Buyid pressure, but the legacy he built — Sarmaj, Dinawar, the markets and mosques of Hamadan, the Barzikani military tradition — endured long after the political dynasty had fallen.
Together with the Marwanids of Diyarbakir and the Shaddadids of the Caucasus, the Hasanwayhids form the Kurdish triad of the eleventh-century Islamic world — three dynasties, three regions, three cultural traditions, one shared Kurdish political identity. Their collective achievement is the Kurdish Intermezzo, and the Hasanwayhid place within it is the central Zagros — the mountain heartland of the Kurdish people themselves.
References and Scholarly Sources
Primary sources: Ibn Miskawayh, Tajarib al-Umam; Ibn al-Athir, al-Kamil fi'l-Tarikh; Bayhaqi, Tarikh-i Bayhaqi; the Hasanwayhid material is preserved across multiple Arabic and Persian chronicles of the tenth and eleventh centuries.
Major academic sources: "Hasanwayhids," Encyclopædia of Islam (2nd ed., C. E. Bosworth); "Hasanwayhids," Encyclopædia Iranica; "Hasanwayhid dynasty," Encyclopædia Britannica; V. Minorsky, Studies in Caucasian History and related Cambridge work on medieval Kurdish dynasties; Andrew C. S. Peacock, articles on the medieval Iranian-Kurdish frontier; the standard reference works of medieval Iranian and Iraqi history (Cambridge History of Iran, Cambridge History of Islam).
Kurdish-History.com biographies: the umbrella post links to all four Hasanwayhid ruler bios — Hasanwayh, Badr ibn Hasanwayh, Hilal ibn Badr, and Zahir ibn Hilal ibn Badr — together with cross-references to the contemporary Marwanid and Shaddadid umbrella entries.
Comments