The city was hit by earthquakes twice: one in 1531 and the other in 1755, which damaged the city and many historical monuments were lost. During the Napoleonic invasions in the early 19th century the city was invaded and pillaged.