Mustafa Rumi was a Ottoman Turkish general who served the Mughal Empire under Babur. At the Battle of Panipat and Battle of Khanwa, he commanded the Matchlock gun infantry. His role in these battles as commander of rifle troops was a vital one, as it was the riflemen and the cannons under Ustad Ali Quli and Mustafa Rumi that won the day.