Kyrenia Castle is located near the harbour, which is horse shoe shaped. It was originally built by the Romans in the Third century to defend the city, which was located up on the hillside. In the Tenth century, the Byzantines then further enhanced the shape of the castle in order to protect the people of the city from Arab pirates.
http://www.kyreniacastle.com/kyrenia.php