The old city was probably destroyed by the Arabs, in the first half of the 9th century. The new city was built around a Norman castle, which no longer exists. An earthquake in 1693 destroyed almost the entire city, which was slowly rebuilt in the following centuries.