The erecting of these ochre ramparts was one of first the works of the 12th-century Almoravid Dynasty. The walls were extended as the town grew. The Saadian Dynasty also contributed to their upkeep and extension. The ramparts extend nearly 12 miles around the Medina. They are each 6 to 8 meters high and encompass 15 large gates, the most famous of which being Bab Agnaou. The nicest way to circumnavigate the ramparts is to ride a calash, departing from Jemaâ El Fna Square.