guarantee for Babak to Afshin. This was taken to Babak who was very displeased. He said: "Better to live for just a single day as a ruler than to live for forty years as an abject slave." He decided to leave the country for the Byzantine Empire and on his way Babak met Sahl Smbatean (Sahl ibn Sunbat in Arab sources), Prince of Khachen, who was Armenian due to the Armenian historiography and Caucasian Albanian due to the Adharbayjani historiography. Sahl Smbatian, however, handed Babak over to Afshin in return for a large reward. Al-Mu'tasim commanded his general to bring Babak to him. Afshin informed Babak of this and told him since Babak might never return, this was the time to take a last look around. At Babak's request, Afshin allowed his prisoner to go to Badhdh. There Babak walked through his ruined stronghold one night until dawn. Eventually, Bābak, his wife, and his warriors were forced to leave Ghaleye Bābak after 23 years of constant campaigns. Death 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. It's said that Bābak bravely rinsed his face with the drained blood pouring out of his cuts, thus preventing the Caliph and the rest of the Abbasid army from seeing his pale face, a result of the heavy loss of blood. He was then gibbeted alive whilst sewn into a cow's skin with the horns at ear level to gradually crush his head as it dried out. Legacy Babak Khorramdin was not well known outside academia until the 20th century; however, due to Soviet nation building efforts and Babak's following of the teachings of Mazdak with its proto-socialist themes, Babak Khorramdin was proclaimed a national hero in the Azerbaijan Soviet Socialist Republic. For example, the Soviet era scholar Ziya Bunyadov, claimed that "Babak was a national hero of Azerbaijani people" while the Russian ethnologist, historian and anthropologist Victor Schnirelmann dismisses Bunyadov's theory, criticizing Bunyadov for not mentioning that Babak spoke Persian, and ignoring the witness accounts of Babak's contemporaries who call him Persian. To this day, in the modern Republic of Azerbaijan, Babak is a cult figure and celebrated as a national hero. A city and a district in Azerbaijan were named after Babak,