Answer
Abbasi became Prime Minister after Nawaz Sharif resigned due to the Panama Papers case. Sharif was accused of hiding assets and wealth from the public, and the case led to widespread protests in Pakistan. Abbasi was seen as a compromise candidate, and he was tasked with restoring stability to the country.