The original settlement was a fort from the time of Byzantium, when it was a centre of wine production.
The city was nahiye and governed by Ottoman Empire with Kaymakam between the 14th and 20th centuries.