Serbian officers participated in the Serb uprising of 1848–49 and the Herzegovina uprising (1875–1877). During and after the Serbian–Turkish Wars (1876–1878), between 30,000 and 70,000 Muslims, mostly Albanians, were expelled by the Serbian army from the Sanjak of Niș and fled to the Kosovo Vilayet.