The mosque was built in 1758 by the Arab ruler of Acre, Zahir al-Umar. It was built in a courtyard on the site of a structure commissioned by the Crusaders and which later became the gate to the Genoaese quarter of the city.