Open the interactive atlas →
Anti-colonial & freedom

Babak Khorramdin and the Khurramites

From a mountain fortress in Azerbaijan, a former cowherd led a religious and social movement against the Abbasid caliphs for more than twenty years.

When
c. 816 – 837
Where
Badhdh (Babak Fort), near Kaleybar, Iran
Facts checked
2026-12-04

See it on the map →

The mountain fortress near Kaleybar, Iran, known as Babak Fort.
The mountain fortress near Kaleybar, Iran, known as Babak Fort. Shabnam Erfani · CC BY-SA 4.0 · Wikimedia Commons
01

What is the background to this event?

Iran had been conquered by the Arabs in the seventh century, and was ruled by the Abbasid caliphs from Baghdad.1

  • The Khurramites ("those of the joyous religion") followed a faith that is considered an offshoot of the teachings of Mazdak.1
  • Babak, born in the Ardabil area in about 795, worked as a cowherd and as a servant before joining the movement.1
02

Who were the key people?

  • Babak Khorramdin

    Leader of the Khurramite rebellion, executed in 838.

  • Al-Afshīn

    The Abbasid general who defeated him.

  • Sahl Smbatean (Sahl ibn Sunbat)

    Armenian prince who handed him over for a reward.

  • Caliph al-Muʿtaṣim

    Who ordered his execution.

03

What happened?

From about 816, Babak led a rebellion from his fortress of Badhdh in Azerbaijan.1

  • The revolt spread to western and central Iran and lasted more than twenty years.1
  • It called for a return to the glories of Iran's past before the Arab conquest.1
  • In 835–836, the caliph sent his general al-Afshīn, who rebuilt fortresses and protected his supply lines.1
  • Babak's fortress fell in 837. He fled, but was handed over by an Armenian prince.1
  • In 838, he was executed: his hands and feet were cut off and he was gibbeted.1
04

What happened next?

  • The end of the Khurramites: the movement declined after his death, though it survived in places.
  • Memory: he was little known outside academia until the twentieth century.1
05

Why does it matter?

Babak's revolt was one of the longest challenges to the Abbasid caliphate, combining resistance to foreign rule with radical religious ideas.

  • His story has been claimed by many later movements.
  • He held out against the caliphate for some twenty years from his mountain strongholds.
  • Little known outside academia until the twentieth century, he has since been claimed as a national hero by both Iranians and Azerbaijanis.1
  • Babak Fort near Kaleybar draws visitors who come to remember him.

Go further

What do others say?How it was seen at the time, and where historians disagree

At the time

Muslim chroniclers were hostile, and spread stories of his low birth that historians now treat as fabrications.1

Debates since

  • Social revolution? Because the Khurramites followed Mazdakite ideas, some saw Babak as a proto-socialist; the sources on his beliefs are mostly hostile.13
  • Violence on both sides: chroniclers claimed his forces killed huge numbers of people, figures historians treat with caution; the caliph's armies killed many of his followers, and his execution was deliberately brutal.1
  • Nation: Soviet Azerbaijan proclaimed him a national hero, and Iranian nationalists also claim him.1
How do we know?The evidence, and a source from the time
  • The histories of al-Ṭabarī and other Arabic writers.
  • The ruins of Babak Fort.

Primary source: Manuscript illustration

Babak parleys with the caliph's general al-Afshin: a page from an early 14th-century copy of Bal'ami's Tarikhnama (Book of History).
Babak parleys with the caliph's general al-Afshin: a page from an early 14th-century copy of Bal'ami's Tarikhnama (Book of History). Bal'ami (text); unknown illustrator · Public domain · Wikimedia Commons
What is it?
Manuscript illustration
Made by, and when
Copy of Bal'ami's Tarikhnama, early 14th century

A page from a Persian version of al-Tabari's history, the main written source on Babak, showing him negotiating with the caliph's general. The text was written by a scholar of the Abbasid world; the painting was made centuries later.

Reading it

The history was written by a scholar of the Abbasid world — the side that defeated Babak — and the painting was added centuries later. It is notable that the artist chose a negotiation, not a battle: a reminder that Babak was strong enough to bargain with the caliph's generals. Whose story it is depends very much on who is telling it.

How is it remembered?Memorials, anniversaries and arguments over memory
  • Babak Fort near Kaleybar attracts visitors who come to remember him.
Open questionsWhat this story leaves unresolved
  • Why did the Khurramites rebel against the caliphate?
  • How could Babak hold out for so long?
  • How do hostile sources shape what we know about him?
  • Why have both Iranians and Azerbaijanis claimed him as a national hero?
Similar eventsOther struggles like this one
  • 524Mazdak and the Mazdakite Movement — During a famine, a Persian priest told the king that God made the earth's resources for everyone to share. His followers opened the granaries — and for a time the king supported them. Then the crown prince had them massacred.
  • 831The Bashmurian Revolts — In the reed marshes of the Nile Delta, Coptic Egyptians rose again and again against heavy taxes and the rule of the caliphs. They held out for decades, until a caliph came in person to crush them.
  • 869The Zanj Rebellion — Enslaved East Africans forced to dig salt-crusted marshland in southern Iraq rose against the Abbasid Caliphate, built their own state and held out for fourteen years.
Find out moreBooks, websites and places to visit
References

All stories · Open this story in the interactive atlas · Glossary of key words