The site was of strategic importance as it controlled the northern exit of the Cilician Gates. In the 8th–9th centuries it was located on the border between the Byzantine Empire and the Arab Caliphate and played a prominent role in the Arab–Byzantine wars of the period, changing hands several times.