The castle was built in 1409 by the Knights of St John, but was conquered by Suleyman the Magnificent in 1523.