Karamanids

[3] The Karamanids traced their ancestry from Hodja Sad al-Din and his son Nure Sufi Bey, who emigrated from Arran (roughly encompassing modern-day Azerbaijan) to Sivas because of the Mongol invasion in 1230.

[4] According to others, they were members of the Afshar tribe,[5] which participated in the revolt led by Baba Ishak and afterwards moved to the western Taurus Mountains, near the town of Larende, where they came to serve the Seljuks.

His son, Kerîmeddin Karaman Bey, gained tenuous control over the mountainous parts of Cilicia in the middle of the 13th century.

A persistent but spurious legend, however, claims that the Seljuq Sultan of Rum, Kayqubad I, instead established a Karamanid dynasty in these lands.

The rivalry between Kilij Arslan IV and Izz al-Din Kaykaus II allowed the tribes in the border areas to live virtually independently.

Karaman Bey helped Kaykaus, but Arslan had the support of both the Mongols and Pervâne Sulayman Muin al-Din (who had the real power in the sultanate).

In 1261, on the pretext of supporting Kaykaus II, who had fled to Constantinople as a result of the intrigues of the chancellor Mu'in al-Din Suleyman, the Pervane, Karaman Bey and his two brothers, Zeynül-Hac and Bunsuz, marched toward Konya, the Seljuq capital, with 20,000 men.

Taking advantage of the general confusion, Mehmed Bey captured Konya on 12 May and placed on the throne a pretender called Jimri, who claimed to be the son of Kaykaus.

Despite these blows, the Karamanids continued to increase their power and influence, largely aided by the Mamluks of Egypt, especially during the reign of Baybars.

A second expansion coincided with Karamanoğlu Alâeddin Ali Bey's marriage to Nefise Hatun, the daughter of the Ottoman sultan Murat I, the first important contact between the two dynasties.

Their economic activities depended mostly on control of strategic commercial areas such as Konya, Karaman and the ports of Lamos, Silifke, Anamur, and Manavgat.

The Beylik of Karaman (orange) in 1300
Page from the Quran manuscript made for Halil of Karaman . Konya , 1314. Mevlâna Museum
Tiled mihrab niche from the Karamanoglu Ibrahim Bey Imaret, Karaman, now displayed in the Tiled Kiosk of Istanbul