The Abu Hanifa Mosque (Arabic: مسجد أبو حنيفة, masjid abū ḥanīfah or مسجد أبي حنيفة, masjid abī ḥanīfah) is one of the most prominent Sunnimosques in Baghdād, Iraq.
It is built around the tomb of Abū Ḥanīfah an-Nuʿmān (often called "the Great Imam" (ألإمام الأعظم, al-imām al-aʿẓam)), the founder of the Ḥanafīmadhhab or school of Islamic religious jurisprudence. It is located in the Sunni-dominated al-Aʿẓamiyyah quarter of Baghdad, to the northeast of the city.
Imam Abu Hanifa died and was buried nearby in 105 AH / 767 AD. The small town of al-Adhamiya grew up around the shrine. In 459 AH / 1066 AD, the mosque was restored by Sharaf al-Mulk Abu Sa’id al-Khwarizmi, who added a large dome and constructed the adjacent Hanafi school.