In 1593 the town had grown outside the walls and had 5,711 inhabitants. It was nearly entirely destroyed by an earthquake in 1693, and was subsequently rebuilt.