The Babai revolt was a thirteenth-century rebellion that took place in the southeastern territories of the Sultanate of Rum starting in 1239 and lasting for three years. The revolt was spearheaded by Baba Ishak, who led the Turkomans against the authority of the Sultanate.
Gñyasettin had ceded power to his ministers, notably Sa'd al-Din Köpek, who was suspicious of a rebellion by Afshar immigrants who had settled in Anatolia, migrating from Persia after the Mongol invasion. He accordingly imprisoned the suspects which led to their movement towards Aleppo within the Nizari Ismaili state. He had the leaders from Khwarazm imprisoned.
The revolt began in 1239 around Samsat (now in Adñyaman Province) and spread quickly to Central Anatolia. Baba Ishak, who led the revolt, was a follower of Baba Ilyas, the qadi (judge) of Kayseri. He declared himself Amir al-Mu'minin, Sadr al-Dunya wa l-Dën, and "Messenger of God." Although the Seljuk governor of Malatya tried to suppress the revolt he was defeated by the revolutionaries around Elbistan (in modern Kahramanmaraà  Province). The revolutionaries captured the important cities of Sivas, Kayseri and Tokat in Central and North Anatolia. The governor of Amasya killed Baba Ishak in 1240, but this did not mean the end of the revolt. The revolutionaries marched on Konya, the capital. The sultan saw that his army could not suppress the revolt, and he hired mercenaries of French origin. The revolutionaries were defeated in a decisive battle on the Malya plains near Kñrà Âehir.
BÃÂbàEliyÃÂs al-KhorÃÂsÃÂnë (â 1240) was an influential mystic from Greater Khorasan, who was the murshid of Aybak BÃÂbàwho in turn was the murshid of one of the leading actors of the Babais Rebellion, namely Baba Ishak as well. Eventually, BÃÂbàEliyÃÂs KhorÃÂsÃÂnë was held responsible for the insurrection organized by BÃÂbàIshÃÂq Kafarsudë, and consequently executed by MubÃÂrizâÂÂud-Dën-i ArmÃÂÃÂÃÂn-ShÃÂh, the supreme commander-in-chief of the armies of Rum.
The revolt was suppressed with much bloodshed. However with the diversion of resources needed to suppress the revolt, the Seljuk army was severely affected. The defence of the eastern provinces was largely ignored, and most of Anatolia was plundered. The Seljuks lost the valuable trade colony in Crimea on the north of the Black Sea. The Mongol commander Baiju Noyan saw this as an opportunity to occupy East Anatolia, and in 1242 he captured Erzurum. In 1243, he defeated Kaykhosrow's army in the battle of Köse DaÃÂ, and the Seljuks became vassals of the Mongols.