Aurangzeb and his army advanced towards Bijapur and besieged Bidar.[2] The Kiladar (governor or captain) of the fortress, Sidi Marjan, defended it with 1,000 cavalry and 4,000 infantry. Sidi Marjan was mortally wounded when a gunpowder magazine exploded.