In 1169 it was almost entirely destroyed by an earthquake, leaving only the apse area intact. Further damage was caused by a fire in 1169, but the most catastrophic event was the 1693 earthquake, which again left it mostly in ruins. It was subsequently rebuilt in Baroque style.