Medina was the centre for all of the trades, most of which were set up by the Jews. They lived here peacefully until about 1200AD when the local Arabs felt that they had too much power and wanted their own area. The king offered the Jews to build a new city outside his palace and so the Jewish quarter was founded.

 

These are the gates to the King of Morocco's palace in Fez. The current king is a bit of an anomaly on the Arab world. He is the only Muslim ruler in the world that is directly descended from Mohammed but he is in fact very broad minded and secular and has allowed his wife equal standing with him (instead of being in a harem). He has also ratified the Muslim law that allows a man to take 4 wives - but the existing wife must agree to this. Women can also divorce men (unheard of in many Muslim countries).

Moroccans are very tolerant. They allow freedom of religious expression - even though they are a Muslim society. During the second world war when the Germans arrived in Africa, they asked the king of Morocco for the Jews. He famously replied that there were no Jews - only Moroccans, and thus they were saved from deportation and the holocaust.

In fact there is a fully functioning synagogue here which is still used by about 200 Jewish families that live here.
The Fez synagogue.

On the left Olga is standing by the wall of the Jewish cemetery which covers quite a few acres.