On 6 April 1667, a devastating earthquake struck and killed around 2,000 citizens, and up to 1,000 in the rest of the republic, including many patricians and the Rector () Šišmundo Getaldić. The earthquake also levelled most of the city's public buildings, leaving only the outer walls intact. Buildings in the Gothic and Renaissance styles – palaces, churches and monasteries – were destroyed. Of the city's major public buildings, only the Sponza Palace and the front part of the Rector's Palace at Luža Square survived. Gradually the city was rebuilt in the more modest Baroque style. With great effort Ragusa recovered a bit, but still remained a shadow of the former Republic.