 Sultan Ahmed II dismissed him on 13 March 1694 after a year in the office.Mustafa Pasha's next post was his former post, the governorship of Tripoli.In May 1698, he was called to Istanbul to be the acting grand vizier during the then-grand vizier's presence at the battle front.