On 11 September 1697 Prince Eugene of Savoy defeated the Ottoman army in the Battle of Senta, which was fought at this location, and after the Treaty of Karlovci in 1699, the town was included into Habsburg Monarchy as part of the Tisza–Maros section of the Military Frontier. Amongst those involved in the battle was skilled Serb officer, Captain and later Colonel Jovan Popović Tekelija, who after the conflict took command over part of the Frontier. During this period Senta was mainly populated by Serbs and had a small Orthodox church. It was well fortified and protected by organized units of Serb militia called Frontiersmen. After the abolishment of this part of the Frontier in 1751, Senta was included into District of Theiss, which was part of the Bács-Bodrog County of the Habsburg Kingdom of Hungary. Many of the Serbs that lived in the town, and that now considered themselves humiliated by being reduced from soldiers to farmers, emigrated either to other parts of the Habsburg Monarchy where Military Frontier was still needed either to Russia (notably to New Serbia and Slavo-Serbia). One of the settlements in New Serbia was also named Senta by the Serb colonists.