Following the end of the war Hamet Karamanli was initially returned to the throne, ruling again as Ahmad II Pasha from 20 January 1795 until 11 June 1795, when Hamza Yusuf deposed him, seized the throne, and sent Hamet into exile. Hamet later tried unsuccessfully to return and seize the throne with American support in the Battle of Derne during the First Barbary War.