It was built in the 16th century by the Holy Roman Emperor, Charles V as a watch tower to guard against attacks from the Turks and others based in what is now Croatia, 100 kilometers across the Adriatic.