 At the age of 16 in 1628, he had his brother-in-law (his sister Fatma Sultan's husband, who was also the former governor of Egypt), Kara Mustafa Pasha, executed for a claimed action "against the law of God".After the death of the Grand Vizier Çerkes Mehmed Pasha in the winter of Tokat, Diyarbekir Beylerbeyi Hafez Ahmed Pasha became a vizier and an emperor on 8 February 1625.The epidemic, which started in the summer of 1625 and called the plague of Bayrampaşa, spread to a threat to the population of Istanbul.