 During the 13th through the 15th centuries Jews were appointed to a few prominent positions within the government, typically to implement decisions.A number of Jews, fleeing the expulsion from Spain and Portugal, settled in Morocco in the 15th century and afterwards, many moving on to the Ottoman Empire.In 1875, 20 Jews were killed by a mob in Demnat, Morocco; elsewhere in Morocco, Jews were attacked and killed in the streets in broad daylight.