 The mosque was located in the commercial area of the casbah, making many shops working around the mosque.In 1703, the mosque was briefly renamed to "Sidi al-Mahdi Mosque", reflecting the governor at the time.During the French occupation, height of the minaret was reduced to 12 meters.