Babai revolt

The Babai revolt was a thirteenth-century rebellion that took place in the southeastern territories of the Sultanate of Rum starting in 1239 CE and lasting for three years.

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 declared himself Âmīr’ūl-Mu’minīn Sadr’ûd-Dūnya wa’d-Dīn and Rāss’ūl-Allāh.

[2] 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.