Adil Shahi dynasty
Ali Adil Shah II inherited a troubled kingdom. He had to face the onslaught of the Maratha led by Shivaji, who had fought and killed Afzal Khan the most capable commander in the Bijapur Sultanate and the leaderless troops of Bijapur were thenceforth consequently routed by Shivaji's rebels. As a result, the Adil Shahi dynasty was greatly weakened mainly due to the rebellious Maratha led by Shivaji and his son Sambhaji.