Due to the continuous disputes, the town has become four times under Turkish administration (between 1552 and 1595, between 1613 and 1686, between 1690-1691 and between 1695 and 1716), and starting with 1716 it came under Habsburg domination.
The town experienced four periods of Turkish administration (between 1552 and 1595, between 1613 and 1686, between 1690-1691, and between 1695 and 1716), before transitioning to Habsburg control starting in 1716.