At the western end of the city were two historic kasbahs (fortified enclosures) attached to the city: the Kasbah an-Nouar, which still exists today on the northern side of Place Bou Jeloud, and the Kasbah Bou Jeloud, whose walls have since disappeared but which stood directly southwest of the current Bab Bou Jeloud gate. The Kasbah Bou Jeloud was historically the governor's residence and the seat of government control.
Two ancient fortified structures, situated at the western end of the city: the Kasbah an-Nouar, which remains standing today on the northern side of Place Bou Jeloud, and the Kasbah Bou Jeloud, whose walls have been demolished but once stood southwest of the current Bab Bou Jeloud gate. The Kasbah Bou Jeloud was historically the governor's residence and the center of government administration.