map of Alanya from 1525 showing the extent of the medieval city and the location on the Pamphylia plain.|alt=A detailed drawing of a map of a distinct peninsula with a walled city, and a curved bay below it. Mountains are included on the right, as is a compass rose on the left. Finds in the nearby
Karain Cave indicate occupation during the
Paleolithic era as far back as , A
Phoenician language tablet found in the district dates to , and the city is specifically mentioned in the 4th-century BC Greek geography manuscript, the
periplus of Pseudo-Scylax. The castle rock was likely inhabited under the
Hittites and the
Achaemenid Empire, and was first fortified in the
Hellenistic period following the area's conquest by
Alexander the Great.
Alexander's successors left the area to one of the competing Macedonian generals,
Ptolemy I Soter, after Alexander's death in . His dynasty maintained loose control over the mainly
Isaurian population, and the port became a popular refuge for
Mediterranean pirates. The city resisted
Antiochus III the Great of the neighboring
Seleucid kingdom in , but was loyal to the pirate
Diodotus Tryphon when he seized the Seleucid crown from 142 to . His rival
Antiochus VII Sidetes completed work in on a new castle and port, begun under Diodotus. The
Roman Republic fought
Cilician pirates in , when
Marcus Antonius the Orator established a
proconsulship in nearby
Side, and in under
Servilius Vatia, who moved to control the Isaurian tribes. The period of piracy in Alanya finally ended after the city's incorporation into the
Pamphylia province by
Pompey in , with the
Battle of Korakesion fought in the city's harbor. In
Strabo's reckoning, Coracesium marked the boundary between
ancient Pamphylia and
Cilicia (
Cilicia Trachaea, in particular); though other ancient authors placed the boundary elsewhere. Isaurian banditry remained an issue under the Romans, and the tribes revolted in the fourth and fifth centuries AD, with the largest rebellion being from 404 to 408. With the spread of
Christianity Coracesium, as it was called, became a
bishopric. Its
bishop Theodulus took part in the
First Council of Constantinople in 381, Matidianus in the
Council of Ephesus in 431, Obrimus in the
Council of Chalcedon in 451, and Nicephorus (Nicetas) in the
Third Council of Constantinople in 680. Coracesium was a
suffragan of the
metropolitan see of Side, the capital of the
Roman province of
Pamphylia Prima, to which Coracesium belonged. It continued to be mentioned in the
Notitiae Episcopatuum as late as the 12th or 13th century. No longer a residential bishopric, Coracesium is today listed by the
Catholic Church as a
titular see.
Islam arrived in the 7th century with
Arab raids, which led to the construction of new fortifications. in Alanya|alt=A stone statue of a man in warrior clothes on horseback. Following the
Fourth Crusade's attack on the Byzantines, the Christian
Armenian Kingdom of Cilicia periodically held the port, and it was from an Armenian,
Kir Fard, that the Turks took lasting control in 1221 when the Anatolian Seljuk Sultan
Alaeddin Kayqubad I captured it, assigning the former ruler, whose daughter he married, to the governance of the city of
Akşehir. Seljuk rule saw the golden age of the city, and it can be considered the winter capital of their empire. Building projects, including the
twin citadel, city walls, arsenal, and
Kızıl Kule, made it an important seaport for western Mediterranean trade, particularly with
Mamluk Egypt and the
Italian city-states. Alaeddin Kayqubad I also constructed numerous gardens and
pavilions outside the walls, and many of his works can still be found in the city. These were likely financed by his own treasury and by the local
emirs, and constructed by the
contractor Abu 'Ali al-Kattani al-Halabi. At the
Battle of Köse Dağ in 1243, the
Mongol hordes broke the Seljuk hegemony in
Anatolia. Alanya was then subject to a series of invasions from
Anatolian beyliks.
Lusignans from
Cyprus briefly overturned the then ruling
Hamidid dynasty in 1371. The Karamanids sold the city in 1427 for 5,000 gold coins to the
Mamluks of Egypt for a period before General
Gedik Ahmed Pasha in 1471 incorporated it into the growing
Ottoman Empire. The city was made a capital of a local
sanjak in the
eyalet of Içel. The Ottomans extended their rule in 1477 when they brought the main shipping trade,
lumber, then mostly done by
Venetians, under the
government monopoly. Trade in the region was reduced by the development of an oceanic route from Europe around Africa to India, and in the tax registers of the late sixteenth century, Alanya failed to qualify as an urban centre. In 1571 the Ottomans designated the city as part of the newly conquered
province of Cyprus. After World War I, Alanya was nominally
partitioned in the 1917
Agreement of St.-Jean-de-Maurienne to
Italy, before returning to the
Turkish Republic in 1923 under the
Treaty of Lausanne. Like others in this region, the city suffered heavily following
the war and the
population exchanges that heralded the Turkish Republic, when many of the city's Christians resettled in
Nea Ionia, outside
Athens. The Ottoman census of 1893 listed the number of
Greeks in the city at out of a total population of . Tourism in the region started among
Turks who came to Alanya in the 1960s for the alleged healing properties of Damlataş Cave, and later the access provided by
Antalya Airport in 1998 allowed the town to grow into an international resort. Strong population growth through the 1990s was a result of immigration to the city, and has driven a rapid modernization of the infrastructure. ==Geography==