 The Polish throne passed to Henry III of France and then to other foreign-based rulers in rapid succession, causing a decline in the city's importance that was worsened by pillaging during the Swedish invasion and by an outbreak of bubonic plague that left 20,000 of the city's residents dead.In 1596, Sigismund III of the House of Vasa moved the administrative capital of the Polish–Lithuanian Commonwealth from Kraków to Warsaw.Already weakened during the 18th century, by the mid-1790s the Polish–Lithuanian Commonwealth had twice been partitioned by its neighbors