Tradition holds that Nur ad-Din Zangi, a Turkoman atabeg of the Great Seljuk Empire and sultan of its Syrian province, built the mosque in 1172–1173, shortly before his death. It was destroyed during the last days of the Battle of Mosul in 2017. Reconstruction is expected to happen over the coming years.