After the periods of the Roman and Byzantine rule, the area was captured by the Seljuk Turks in 1127. After the Battle of Köse Dağ it came under Ilkhanate control for a while. In the mid 14th century the area was annexed by the Ottomans. After a brief period of Timurid rule in the wake of the Battle of Ankara in 1402, it was re-captured by the Ottomans.