▁mos que ▁its ▁alternate ▁name ▁of ▁J ami ' ▁al - H ur ra ▁(" M os que ▁of ▁Fre edom "). ▁▁ ▁In ▁ 1 5 5 7 - 5 8 ▁CE ▁the ▁s ultan ▁had ▁ordered ▁that ▁the ▁Jewish ▁population ▁of ▁the ▁city ▁re loc ate ▁to ▁an ▁area ▁closer ▁to ▁the ▁Kas bah ▁( ro yal ▁cit adel ), ▁resulting ▁in ▁the ▁creation ▁of ▁a ▁Jewish ▁m ella h ▁which ▁continued ▁to ▁exist ▁into ▁modern ▁times . ▁Const ruction ▁of ▁the ▁new ▁m ella h ▁was ▁probably ▁finished ▁around ▁ 1 5 6 2 - 6 3 . ▁Meanwhile , ▁the ▁empty ing ▁of ▁the ▁old ▁Jewish ▁neighbourhood s ▁had ▁liber ated ▁a ▁large ▁amount ▁of ▁space ▁within ▁the ▁city ▁which ▁was ▁open ▁to ▁re development . ▁The ▁Bab ▁Dou kk ala ▁Mos que , ▁along ▁with ▁the ▁Mou ass ine ▁Mos que ▁built ▁around ▁the ▁same ▁time , ▁appears ▁to ▁have ▁been ▁part ▁of ▁a ▁larger ▁plan ▁to ▁build ▁new ▁" model " ▁neighbourhood s ▁in ▁the ▁area . ▁It ▁was ▁conce ived ▁as ▁part ▁of ▁a ▁coh er ent ▁religious ▁and ▁civ ic ▁complex ▁which ▁included , ▁in ▁addition ▁to ▁the ▁mos que ▁itself , ▁a ▁mad ras a , ▁library , ▁h amm am ▁( public ▁bath house ) ▁with ▁lat r ines , ▁and ▁a ▁public ▁f ount ain ▁for ▁distrib uting ▁water ▁to ▁the ▁loc als . ▁This ▁type ▁of ▁architect ural ▁complex ▁was ▁un pre ced ented ▁in ▁Mor oc co , ▁and ▁may