Shivaji allied with numerous Islamic states, including Bijapur, Golconda, and even the Mughals when it suited him (sometimes against Hindu powers in south India). Shivaji welcomed Muslims within his army; he had qazis (Muslim judges) on his payroll, and Muslims ranked among some of his top commanders. Mughal alliances and the imperial army were similarly diverse, and Aurangzeb sent a Hindu, Jai Singh, to besiege Shivaji at Purandar. Modern suggestions that Marathas who resisted Mughal rule thought of themselves as “Hindus” defying “Muslim” tyranny are just that: modern.