The Sultanate of Ahmednagar or the Nizam Shahi Sultanate was a late medieval Indian Muslim kingdom located in the northwestern Deccan, between the sultanates of Gujarat and Bijapur, ruled by the Nizam Shahi or Bahri dynasty. It was established when Malik Ahmed, the Bahmani governor of Junnar after defeating the Bahmani army led by general Jahangir Khan on 28 May 1490 declared independence and established the Nizam Shahi dynasty of the Sultanate of Ahmednagar.