The Mellah of Marrakesh was created by decree of the Sultan Abdallah al-Ghalib of the Saadian dynasty in 1558,[2] outside of the walls of El Badi Palace. During the 16th and 17th centuries, the Mellah was one of the main commercial areas of the city, and it was a walled quarter, with its gates closed at night. [3]