Bābak Khorram-Din (798—838) was one of the main Persian revolutionary leaders of the Iranian Khorram-Dinān ("Those of the joyous religion"), which was a local freedom movement fighting the Abbasid Caliphate. Khorramdin appears to be a compound analogous to dorustdin (orthodox) and Behdin "Good Religion" (Zoroastrianism), and are considered an offshoot of neo-Mazdakism. Babak's Iranianizing rebellion, from its base in Azarbaijan in northwestern Iran, called for a return of the political glories of the Iranian past. The Khorramdin rebellion of Babak spread to the Western and Central parts of Iran and lasted more than twenty years before it was defeated. His heritage is widely appreciated and celebrated by many people today, including Iranians, Azerbaijanis, and Tajiks.
Under the direction of his mentor Javidan Shahrak, a leader of one of the sects of the Khorramdin, Babak's knowledge of history, geography, and the latest battle tactics strengthened his position as a favorite candidate for commander during the early wars against the Arab occupiers.
Bābak was a highly spiritual person who respected his Zoroastrian heritage. He made every possible effort to bring Iranians together and also with leaders such as Maziar to form a united front against the Arab Caliph. According to the medieval historian, Ibn Esfandyar, who composed the book Tarikh-e Tabaristan "History of Tabaristan", Maziar said:
“I (Maziyar), Afshin Kheydar son of Kavus, and Babak had made an oath and allegiance that we re-take the government back from the Arabs and transfer the government and the country back to the family of Kasraviyan (Sassanids)"
However, one of the most dramatic periods in the history of Iran was set under Bābak's leadership between 816-837. During these most crucial years, they not only fought against the Caliphate, but also for the preservation of Persian language and culture.
He was eventually betrayed by Afshin and was handed over to the Abbasid Caliph. During Bābak's execution, the Caliph's henchmen first cut off his legs and hands in order to convey the most devastating message to his followers. The legend says that Bābak bravely rinsed his face with the drained blood pouring out of his cuts, thus depriving the Caliph and the rest of the Abbasid army from seeing his pale face, a result of the heavy loss of blood.