▁in ▁ 1 7 9 0 ▁to ▁ 1 7 9 2 ▁during ▁a ▁period ▁of ▁general ▁tur mo il ▁and ▁decl ine ▁under ▁Sultan ▁M oul ay ▁Y az id . ▁During ▁these ▁two ▁years ▁the ▁s ultan ▁forced ▁the ▁entire ▁Jewish ▁community ▁to ▁move ▁to ▁the ▁out lying ▁Kas bah ▁Cher arda ▁on ▁the ▁other ▁side ▁of ▁F es ▁el - J did . ▁The ▁M ella h ▁was ▁occupied ▁by ▁trib al ▁troops ▁al lied ▁to ▁him , ▁its ▁syn agog ue ▁was ▁replaced ▁by ▁a ▁mos que , ▁and ▁the ▁Jewish ▁c emetery ▁and ▁its ▁contents ▁were ▁moved ▁to ▁a ▁c emetery ▁near ▁Bab ▁Gu issa . ▁Moreover , ▁M oul ay ▁Y az id ▁perman ently ▁reduced ▁the ▁size ▁of ▁the ▁district ▁by ▁demol ishing ▁the ▁old ▁city ▁walls ▁around ▁it ▁and ▁re building ▁them ▁along ▁a ▁much ▁smaller ▁per imeter . ▁It ▁was ▁only ▁after ▁the ▁s ultan ' s ▁death ▁that ▁the ▁chief ▁Muslim ▁q adi ▁( jud ge ) ▁of ▁F es ▁ordered ▁the ▁M ella h ▁to ▁be ▁restored ▁to ▁the ▁Jewish ▁community , ▁along ▁with ▁the ▁demol ition ▁of ▁the ▁mos que ▁built ▁by ▁Y az id ' s ▁troops . ▁ ▁The ▁fort unes ▁of ▁the ▁Jewish ▁community ▁improved ▁consider ably ▁in ▁the ▁ 1 9 th ▁century ▁when ▁the ▁expansion ▁of ▁contact ▁and ▁trade ▁with ▁Europe ▁allowed ▁the ▁Jewish ▁merchant ▁class ▁to ▁place ▁themselves ▁at ▁the ▁center ▁of ▁international ▁trade ▁networks ▁in ▁Mor oc co . ▁This ▁also ▁led ▁to ▁a