Inside, the city was further subdivided into different districts, some of which, including the Dar al-Makhzen, had walls and gates separating them from the others.[3] Another district, initially known as Hims and later converted into the Jewish Mellah, was also added to the south.[4][3] In 1287 Sultan Abu Ya'qub Yusuf (son of Abu Yusuf Ya'qub) created a vast pleasure garden, known as El-Mosara, to the north, just outside the city but encompassed by its own protective wall.