Alanya (ancient Korakesion) which is 168 km to the east of Antalya is situated on a rocky peninsula. With its unique defensive position and well-sheltered harbor, the city played an essential role during the Hellenistic years and served as a retreat for pirates under Roman control. After being captured by Alaeddin Keykubat I, the Seljuk Sultan, and turned into a naval base, the city grew and population and was called Alaiye which later become Alonya. Afterwards the dissolution of the Seljuks, Alanya passed into the hands of the Karamanlis. Remains of the barricades from the Classical period can still be seen on the point. The present palace built by Alaeddin Keykubat I consists of three walls. In the ancient ages, there were ship stations along the sea where vessels loaded cedar. Owing to its great defenses Korakesion was prepared to resist successfully the troops of Antiochus who invaded Cilicia. Alanya found value in the Seljuk period with its shipbuilding trade, but it suffered substantial destruction next when the conflicts between the troops of Sultan Mehmet II, and Karamanoğullan. Like other cities in this region, it never regained its former level of prosperity.