 The mosque was built by the Abbasids in 772 CE, under the reign of caliph al-Mansur.All that remains of the mosque today are the baked brick minaret () and the prayer hall ("haram") façade with eleven arches that were added by Nur ad-Din Zangi during the 1165 renovation of the mosque.The mosque is currently in ruins.