In the meantime the town was devastated by the Turks and Tartars between 1663-1683, followed by Hungarian rebels.
The year 1708 was the most dramatic moment as Hungarian rebels called Kuruci attacked the town and burned it almost to the ground.
The building was burnt down by Hungarian rebels in 1621 during an anti-Habsburg riot.
Inner-Polish Catholic opposition to an intervention on the Protestant Hungarian rebels' side added to the resentments.
In 1605 Matthias forced the ailing emperor to allow him to deal with the Hungarian Protestant rebels.
In 1687, Antonio Caraffa accused Hermann of making common cause with the Hungarian rebels.
In 1621, he participated in a campaign against the Hungarian rebels and took over command during the critical period after the death of the commander Bucquoy.
In 1623, he again fought Hungarian rebels and was then appointed commander of all the imperial troops in Bohemia.
Hungarian rebels burned Serbian villages and many Serbs were expelled from Bačka.
Although backed by Ottoman Empire, Hungarian rebels were defeated and had to choose a life in exile.