Those are two Turkish castles that are built in the 19th century using material from the nearby archaeological site of Aptera. The lower castle is that of Itzedin (also known as Kalami fort) named in honour of the son of the Sultan of the time, by the commander of Crete, Reouf Pasha was used in the past as a prison.