شيخ الإسلام
In 1638, the Ottomans re-invaded Baghdad, after it was recaptured by the Safavids in 1623. Sultan Murad IV turned to Adhamiyah and particularly, Abu Hanifa mosque, because it was the shrine of the Imam of the sultan's madhab. A luxurious dome was built on the mosque. He also brought some of the al-Ubaid tribe to live in houses around the mosque to protect it. The sultan ordered to renew the school and appointed employees to manage the school, along with allowing celebrations and holidays in the school. With the administration of Shaykh al-Islām Yahia, the sultan ordered to rebuild the buildings around the mosque and decorate it with strips of gold and silver, decorate the mosque with green wool drapes and expand the upper and lower gates. The mosque became at its greatest during the period of the rule of Sultan Murad IV.