Babak Khorramdin led the longest rebellion against the Abbasid Caliphate in its first century. From 816 to 837 he and his Khurramite followers held the mountains of Azerbaijan, in north-western Iran, and beat army after army sent against them, until the caliph al-Mutasim's general al-Afshin wore them down and took his fortress. He was executed in 838, and in the 20th century both Iran and the Republic of Azerbaijan adopted him as a national hero.
A frontier childhood
Babak came from Bilalabad, a village in the Ardabil district, where he was born in either 795 or 798. His birth name was al-Hasan, and his brothers had Muslim names too. The sources on his family are mostly written by enemies and are full of slurs: they make his mother Mahru a one-eyed woman of loose morals and offer several different fathers, from an oil seller from Ctesiphon to a descendant of Abu Muslim, the leader of the Abbasid revolt. Historians treat most of these stories as hostile inventions. What seems likely is that his parents were poor villagers who gave their sons Arabic names to help them get on in a region run by Arab landlords.
That region was a lawless frontier. After the long wars against the Khazars, Arab and Iranian settlers poured into Azerbaijan in the late 8th century, and during the civil war between the sons of Harun al-Rashid local warlords and brigands carved out estates for themselves. The young al-Hasan herded cattle, worked as a servant for Arab lords, learned to play the lute from their slave guards, and sold fruit by the road.
Heir of Javidhan
The turning point came when he entered the service of Javidhan, a rich local landowner and leader of one of two rival Khurramite groups based in the mountains around the fortress of al-Badhdh, north-east of Ardabil. The Khurramites were rural sects whose beliefs mixed Iranian folk religion with ideas going back to the Sasanian-era reformer Mazdak. When Javidhan was killed in a clash with the rival group, his widow told his followers that his spirit had passed into the young man, who would lead them to victory. Al-Hasan married her and took the old Persian name Babak, also borne by an ancestor of the Sasanian Empire's founders.
In 816 Babak and his men killed Arab settlers in the area, the act usually counted as the start of his revolt. His timing was good: the governor of Azerbaijan had just died while planning his own rebellion, and the caliph al-Mamun was still ruling from Merv, far to the east.
Twenty years in the mountains
For two decades Babak held the country between the Mughan plain and Marand. His forces raided villages, caravans and sometimes armies, then pulled back to their mountain forts. Some modern historians describe him as a guerrilla leader who lived off plunder and set up no taxes or courts; Iranian nationalist writers, by contrast, credit him with land reform and fair treatment of prisoners, claims the sources do not clearly support. Medieval authors gave his army absurd sizes, up to 300,000 men.
From 819 al-Mamun sent a series of commanders against him, and each failed. In 829 Babak's men ambushed the governor Muhammad ibn Humayd in a narrow pass, killing him and most of his army. Other Khurramite groups rose in western Iran and Upper Mesopotamia, and some of their survivors joined Babak.
Al-Afshin's slow war
Al-Mamun died in 833, and his brother al-Mutasim needed two years to secure his throne. In 835 he gave the war to al-Afshin, a Sogdian prince from Ushrusana in Central Asia and his ablest general. Al-Afshin moved with great care. He cleared brigands from the roads, repaired forts, guarded every supply train, built entrenched camps and ran a network of spies and local mountain scouts. He reportedly advanced only a few miles a day and refused to be drawn into the kind of ambush that had destroyed his predecessors.
By 837 his army surrounded al-Badhdh, a castle perched at about 2,500 metres above deep gorges. After months of siege his troops stormed it with catapults, naphtha throwers and heavy infantry, fighting up paths so narrow that only a few men could advance at once. The fortress was sacked and razed, and hundreds of captive women and children were freed. Babak escaped with his family and fled into Armenia.
Betrayal and death
He took refuge with an Armenian lord, Sahl ibn Sunbat, who handed him over to al-Afshin for a reward. Babak was taken to al-Mutasim's new capital at Samarra, where in January 838 he was paraded on an elephant before the crowds. The caliph reproached him, and the executioner cut off his hands and feet before his body was hung up for display. His brother was executed in Baghdad. Al-Mutasim took one of Babak's daughters as a concubine, and many of his surviving fighters fled to the Byzantine Empire and served in its army.
Legacy
For centuries Babak was remembered mostly as a heretic in Muslim chronicles. In the 20th century he was reborn as a hero twice over. In Iran, from the reign of Reza Shah, nationalists celebrated him as a fighter for Persian culture against the Arabs, and every July people gather at the ruins of his fortress, now called Babak Fort, near Kaleybar in East Azerbaijan province. In Soviet Azerbaijan he was made a national hero, and a popular film about him appeared in 1979; the modern Republic of Azerbaijan still names towns after him. Most historians are more cautious: his followers and his enemies alike included Iranians, and his revolt looks less like a national uprising than the resistance of a local mountain society to new landlords and to the caliph's tax collectors.
On our maps
Our 800 map shows the Abbasid Caliphate a few years after Babak's birth, whose north-western frontier ran through Azerbaijan; the Byzantine Empire and the Khazars are drawn beyond it.
Key dates
- c. 795 CEBorn al-Hasan in Bilalabad, a village in the Ardabil district.
- 816 CESucceeds the Khurramite leader Javidhan and opens his revolt by killing Arab settlers.
- 819 CECaliph al-Mamun sends the first of several governors against him.
- 829 CEAmbushes and kills the governor Muhammad ibn Humayd in a mountain pass.
- 835 CECaliph al-Mutasim gives the war to his best general, al-Afshin.
- 837 CEAl-Afshin storms al-Badhdh after a long siege; Babak escapes to Armenia.
- 837 CEThe Armenian lord Sahl ibn Sunbat hands him over to the Abbasids.
- 838 CEExecuted at Samarra after being paraded through the city on an elephant.
- 1979A film about his life is released in Soviet Azerbaijan.
From the atlas
Babak Khorramdin in time and on the map
Babak Khorramdin lived from 798 CE to 838 CE. Borders of Time has one world map from those years: 800 CE.
Living at the same time, among others on this site: Ahmad ibn Hanbal (780–855 CE), Al-Khwarizmi (750–846 CE), Al-Kindi (801–870 CE), Huang Chao (801–884 CE), Kūkai (774–835 CE), Muhammad al-Bukhari (810–870 CE), Adi Shankara (788–820 CE), Al-Shafi'i (767–820 CE), Muslim ibn al-Hajjaj (817–875 CE) and Jabir ibn Hayyan (721–815 CE).
Events of those years: Vietnam under Chinese rule (111 BCE–938 CE), Arab–Byzantine wars (629–1050), Reconquista (722–1492), House of Wisdom (800–1258), Christianization of Scandinavia (800–1200) and Carolingian Renaissance (800–900 CE).
Born just before and after, among others on this site: before, Krum (755–814 CE) and Harun al-Rashid (766–809 CE); after, Boris I of Bulgaria (827–907 CE) and Rurik (830–879 CE).
Quick answers
- When was Babak Khorramdin born, and when did Babak Khorramdin die?
- Babak Khorramdin was born in 798 CE in Ardabil and died in 838 CE in Samarra, aged about 40.
- Who was Babak Khorramdin?
- Babak Khorramdin led the longest rebellion against the Abbasid Caliphate in its first century.
- What did the Khurramites believe?
- The Khurramites, or Khorram-dinan, "those of the joyous religion", were rural communities in western and northern Iran whose faith mixed local Iranian traditions with ideas linked to the 5th-century reformer Mazdak. Hostile Muslim writers describe them as believing in the transmigration of souls and in divine spirits passing from one leader to the next. Javidhan's widow is said to have announced that his spirit had entered Babak.
- How did Babak Khorramdin die?
- After his fortress fell in 837 he fled to Armenia, where the local lord Sahl ibn Sunbat betrayed him to the Abbasid general al-Afshin. He was taken to the new capital at Samarra, paraded on an elephant, and then, in January 838, had his hands and feet cut off before his body was gibbeted. Accounts of the details differ, and some say he was sewn into a cowhide.
- Was Babak an Iranian or an Azerbaijani hero?
- Both countries claim him. Iranian nationalists since the 20th century have seen him as a defender of Persian culture against Arab rule, while Soviet Azerbaijan made him a national hero and the modern Republic of Azerbaijan still honours him. Many historians see him instead as a local rebel whose aims went no further than the mountains he controlled.