During the turbulent events taking place just before the dethronement of Ibrahim in 1648, the previous grand vizier Hezarpare Ahmet Pasha had been lynched by an angry mob, and the Janissary leaders forced the sultan to appoint Sofu Mehmed Pasha as the grand vizier.
Despite this dethronement, Sofu Mehmed Pasha was still afraid of the former sultan, as there was a possibility of the Janissaries re-enthroning him.
To Sofu Mehmed Pasha's relief, Ibrahim was executed ten days after his dethronement.
[2] The defeat of the Ottoman navy in the Battle of Focchies on 12 May 1649 was a further blow to Sofu Mehmed Pasha.
He was exiled to Malkara (a town in European Turkey), and soon, Kara Murat Pasha had him executed there in August 1649.