Serbian Militia The Serbian Militia ( ; ) was a military unit of the Habsburg - Austrian army consisting of Serbs , that existed in ca . 1686 — 1706 . During the Great Turkish War ( 1686 — 1699 ) . After allied Christian forces had captured Buda from the Ottoman Empire in 1686 during the Great Turkish War , Serbs from Pannonian Plain ( present - day Hungary , Slavonia region in present - day Croatia , Bačka and Banat regions in present - day Serbia ) joined the troops of the Habsburg Monarchy as separate units known as Serbian Militia . In the first half of 1688 the Habsburg army together with units of Serbian Militia captured Gyula , Lipova and Ineu from the Ottoman Empire . After Belgrade had been liberated from the Ottomans in 1688 , Serbs from the territories in the south of Sava and Danube rivers began to join Serbian Militia units . One of the first commanders of the Serbian Militia during the Great Turkish War was Antonije Znorić . In the period 1689 — 1691 , one of the commanders of Serbian Militia units in Banat was Novak Petrović . During the Great Turkish War Serbs gave big support to the Austrian side . The Ottoman Empire had suffered partial military collapse against the Austrians in the 1680s , most notably at the Battle of Vienna in 1683 , and the loss of Belgrade to Maximilian II of Bavaria in 1688 and Bosnia in 1689 . However , with the beginning of the Nine Years War in the west , the early 1690s saw an end to Habsburg conquests in the Balkans and a partial Ottoman recovery . Despite the Ottoman recovery and the weakening of the Habsburg military presence on the Danube ( most Habsburg soldiers were sent to fight against the France in the War of the Grand Alliance ) the Habsburg supreme command planned offensive activities against Ottomans , heavily relying on the Serb soldiers of Serbian Militia and Serb rebels in the Balkans . In 1689 Louis William was appointed as chief commander of the Imperial army in its invasion of the territory of present - day Serbia . Before the invasion Louis William recruited Serb rebels all over territory of present - day Serbia , whose infantry units were called " hayduks " while cavalry units of Serb rebels were called " Serb husars " . On August 29 , 1689 Serbian Militia under the command of Pavle Nestorović Deak as a vanguard unit of the Habsburg army were victorious against a vanguard unit of the Ottoman army during the Battle of Batočina . Jovan Monasterlija , who was appointed as captain of Serbian Militia in 1690 , recruited Serbs into his units in the summer of 1690 on the southern border of the Austrian Empire . During the Battle of Slankamen on August 19 , 1691 , Serbian Militia with 10 , 000 Serbs under the command of Jovan Monasterlija participated in the important victory over Ottoman forces . When Austrian forces supported by Serbian Militia captured Oradea from Ottomans in the spring of 1692 , the seat of the Serbian Militia ' s headquarter became Baja . The Austrian Empire had intentions to reduce the power and importance of Serbian Militia and its military and religious leaders by dividing it to smaller units and sending them to different distant parts of the Empire . Monasterlija ' s rank was changed from Serbian " vice - voivode " and " Chief of the Serbian Nation " to " Rascian obercaptain " . Because of the constant Ottoman threat such plans were never fully implemented . In 1704 Monasterlija ' s Serbian Militia was defeated in the battle with Rákóczi ' s rebels near Baja and many Serbs escaped from the town .