Since 1686 the town was under Habsburg control. The fortress was mined with explosives in 1704, during the Rákóczi's War of Independence (1703–11), and was subsequently abandoned as it was left burned, demolished, and without the previous military importance it had. However, Bač fortress still remains the best preserved medieval fortress in Vojvodina.