From 1063 - 1139 it was the capital of the Seljuk Sultans of Rum (See Sultans of Rum. The sultans Saladin and Selim II built mosques in Konya, and the tomb of Jalal al-Din Muhammad Rumi (Djelal-Eddin), a mystical poet and founder of The Whirling Dervishes is located there.
During the reign of Ala ed-Din I (1219 - 1236) the city was filled with refugees from Persia and Bokharaby fleeing the advance of the Mongols. It is during this period that Konya reached its height of wealth and influence.
Konya is one of the holy cities of Islam.