It was established on a small peninsula where the Mediterranean Sea is located in the south of the Taurus Mountains in the north of Alanya. Since it was located on the line between Pamfilya and Klikya in ancient times, it was sometimes referred to as Pamfilya and sometimes Klikya.
There is no definite information about the first settlement of Alanya. Research conducted by Prof Dr Kılınç KÖKTEN in Kadıini Cave, located 12 km from the city center in 1957, shows that the history of the region dates back to the Upper Paleolithic (20,000 BC, -17,000 BC) period.
It is not yet known when and by whom Alanya was founded for the first time. The oldest known name of the city is Korakesium. In the Byzantine period, it was named as Kalanoros. In 13th century, 1 of Anatolian Seljuk Rulers and Allaaddin Keykubat (1200-1237) took the castle and changed the city’s name to Alaiye. Atatürk, who visited the city in 1935, has named Alanya. (The first mention of Korekesium is Scylax, one of the ancient geographers of the 4th century BC. During this period, the region was under the domination of Persians who invaded a significant part of Anatolia. Later, the famous ancient writer Strabon, Piri Reis, Seyyep, İbn-i Batuta and Evliya Çelebi are travelers who travel the region and talk about the city in their works.
We do not have much information about the first ages of the region and the Byzantine period. During the Arabian raids in the 7th century AD, the city defense gained more importance, and fortress constructions were given priority to protect against the raids. it is dated.
One of the Anatolian Seljuk rulers, Alaaddin Keykubad, defeated Kyr Vart, one of the Christian families, who reigned in Alanya Castle and took over the Castle in 1221. The monarch built a palace here on his behalf. Seljuks carried out zoning activities by using Alanya as a second capital and winter center as well as the capital Konya.
The Mongol attacks in 1243 The entry of the Egyptian Mamluks into Anatolia in 1277 worn out the Seljuks, the Seljuk State was torn in 1300 and the region was taken to the Mamluk Sultan in exchange for five thousand gold by Karamanoğulları, and then it was included in the Ottoman State in 1471.
Alanya was connected to the province of Cyprus in 1571 together with Tarsus, and in 1864 it became the sanjak of Konya province. It was connected to Antalya in 1868 and became the district of this province in 1871.