In 1684 he was released from prison, but was sent away from the seat of power as an administrator of provinces with a rank of "beylerbey". First he was appointed as guard-governor of Cardak near Gallipoli at the Dardanelles Straits; then he was given the rank of vizier and given a similar but more prestigious job at Seddulbahir. In 1691 for a time he was appointed as the temporary governor ("kaimakam" of Istanbul and returned to his main job on Dardanelles. On 1694 he was appointed the Kapudan Pasha (Ottoman admiral-in-chief) and was instrumental with the help of Mezzo Morto Huseyin Pasha in retaking of Chios from the Venetians in 1695. For this success he was appointed the governor of Chios. In 1696 he was again appointed as the temporary governor of Istanbul but soon was sent to the post of governorship of Belgrade. In August 1697 the Ottoman army under the command of Sultan Mustafa II was on the campaign against the Austrians and came to Belgrade. In a War Council planning on what to do next, Amcazade Huseyin Pasha proposed that the Ottoman army should go and put under siege the fortress of Varaždin. However, others argued that it should go towards Temesvar; their proposal was accepted and the Ottoman army was surprised and routed at the Battle of Zenta.