The numerous departures for Spain drained neither the strength of Moroccan Jewry nor its intellectual activity. Isaac Alfasi from Fez for Cordoba (1088), Judaism in Morocco retained its vigor.
Under the Almoravides there was even a trend in the opposite direction.
Some historians maintain that there were Jews among the Berber-Muslim invaders of Spain in 711.
In another legend, it is related that Joab was sent to Morocco to fight the Philistines, who had been driven out of Canaan; an inscription describing this expedition is said to have existed near the present-day town of Zagora.The latter is in Greek, while one of the inscriptions of Volubilis is in Hebrew.Morocco, like the remainder of the Maghreb, was one of the favorite territories for Jewish missionary activities.However, when Idris (791–828) decided to establish his capital in Fez, he authorized Jews of all origins to settle there.Their dispersion in all the regions was one of the principal reasons for their economic strength at the time.Two of the physicians of the Almoravide sovereigns, Meir ibn Kamniel and Solomon Abūab Muʿallim in Marrakesh, were of Spanish origin, one from Seville and the other from Saragossa. There were also scholars in Ceuta , the native town of Joseph ibn Aknin, the disciple of Maimonides.There was also an important center of learning in Sijilmassa (ancient capital of Tafilalet oasis).These were the Fandalāwqa, Madyūna, Bahlūla, Ghiyāta, and Bazāz tribes.The capital of the last was also named Bazāz or Qulʿat-Mlahdī.The story goes that the inhabitants of Fez revolted against the ruler Yaḥya (860), who had violated the chastity of a Jewish girl.The pogrom in Fez in 1033 is to be seen as an isolated event due to the Jewish support for the Maghrawas, the rivals of the Ifrenids.