In 1227/1228, Kayqubad advanced into Anatolia, where the arrival of Jalal ad-Din Mingburnu, who was fleeing the destruction of his Khwarezmian Empire by the Mongols, had created an unstable political situation. The sultan settled Turcomans along the Taurus Mountains frontier, in a region later called İçel. At the end of the 13th century, these Turcomans established the Karamanids. The sultan defeated the Artuqids and the Ayyubids and absorbed the Mengujek emirate into the sultanate, capturing the fortresses of Hısn Mansur, Kahta, and Çemişgezek along his march. He also put down a revolt by the Empire of Trebizond and, although he fell short of capturing their capital, forced the Komnenos dynasty family to renew their pledges of vassalage.