One of the symbols of Alanya – the Alanya castle over the rocky peninsula in the middle of the city. The fortress that you can see today is a remain of 13th century Seljuk fortress built after the conquest of Alanya in 1220 by Alaeddin Keykubat I.
However, the very first fortifications have most probably been built by pirates occupying the peninsula in 3rd century BC and later replaced and improved into Byzantine and Roman fortifications over the centuries. The latest Seljuk Alanya castle is app. 250m over the sea level and its walls have great 6,5km in length. There used to be 140 towers along the walls and around 400 cisterns in the castle.
The fortifications formed three separated divisions – one for the sultan and his family, one for the army and one for the ordinary people. During the Ottoman era, the Alanya castle was used only for defensive purposes and there were many private villas built within the fortress in the 19th century.
http://www.visitalanya.com/discover-alanya-castle/