It was the Almoravid sultan Ali ben Youssef who gave Marrakech its famous surrounding walls in 1132. Enlarged during the reign of the Almohads, then by the Saadians, these 19 km of fortifications enveloping the city are flanked by 202 square towers and endowed with nine gates