The entire city was almost destroyed when a devastating earthquake hit in 1667. During the Napoleonic Wars, Dubrovnik was occupied by the French Empire forces, and then the Republic of Ragusa was abolished and incorporated into the Napoleonic Kingdom of Italy and later into the Illyrian Provinces. Later on in the early 19th to mid 20th century, Dubrovnik was a part of the Kingdom of Dalmatia within the Austrian Empire, and later part of the Banovina of Zeta which later became part of Banovina Croatia in the Kingdom of Yugoslavia and SR Croatia in SFR Yugoslavia.