The current castle, with a perimeter of 1400 meters , was principally constructed during the time of Venetian and Ottoman rule, although remains have been found dating settlements there back to 2000 B.C. The town was substantially damaged by an earthquake in 1881, and only partially retains its original character.