The fortress remained like this until the 17th century, when, due to the Austro-Turkish wars, the fortification was again expanded and upgraded. After the Austrian withdrawal in 1738 following another war, the Turks again reconstructed the fort, including the citadel's tower. With Austrian incursions and Serbian rebellions, the fortress was in this period variously held by the Ottomans, Austrians and Serbs.