The castle on the hill dates from the Byzantine period, when the region was on the frontline in the wars against the Islamic Caliphate.
The present-day city owes its foundation to the grand vizier and son-in-law of the Sultan Ahmed III, Nevşehirli Damat İbrahim Pasha who was born in Muşkara and therefore took a great interest in its construction as a city.