It became an important Seljuk town, and late in the 14th century passed into Ottoman hands. There Sultan Bayezit I is said by Ali of Yezd to have died after his defeat at the Battle of Ankara at the hands of Emir Timur.[1]