Due to his Catholicism, during the Thirty Years' War, he had to take refuge in nearby Poland, where, thanks to the help of Polish king Władysław IV Vasa, he stayed at the Wawel and Niepołomice royal castles. During the war, in 1632, the town was invaded and partly destroyed by Saxon troops, and in 1643, it was largely destroyed by the Swedes and about 500 of its inhabitants died of an epidemic.
Due to his Catholicism, during the Thirty Years' War, he had to flee to nearby Poland, where, thanks to the help of Polish king Władysław IV Vasa, he resided at the Wawel and Niepołomice royal castles. During the war, in 1632, the town was attacked and partially destroyed by Saxon troops, and in 1643, it was largely destroyed by the Swedes, resulting in the deaths of approximately 500 inhabitants from an epidemic.