When Cezayirli Gazi Hasan Pasha was ordered by the sultan Abdülhamid I to take troops to Egypt and drive out the Mamluk emirs led by Ibrahim Bey (Mamluk) and Murad Bey, who had become de facto rulers of the province, Ismail Pasha went with him.[1][3] When Hasan Pasha completed the removal (at least temporarily) and departed, he left Ismail Pasha behind in Egypt.[1] Ismail Pasha then received the news that he was appointed the Ottoman governor of Egypt on 2 December 1788.[1][4]