The prosperity of Tarnowskie Góry was abruptly halted by the Thirty Year War (1618–1648), and in 1676–77 its population was farther decimated by an outbreak of plague (which two years later reached the Austrian capital). In 1683, Polish King John III Sobieski rested in town on his way to the Battle of Vienna (where he led the famous Hussars branch of Polish cavalry to victory in defeating the Ottoman army and stopping the progress of their European invasion). In Tarnowskie Góry, Polish nobility welcomed the newly elected kings Augustus II the Strong and Augustus III of Poland, in July 1697 and January 1734, respectively, when they were heading for their royal coronations to Kraków.