The older parts of the ramparts date back to the 12th century, built to defend Marrakech. The walls were later extended. Even nowadays the old city wall encircles the whole medina and is about 10 miles long. The ramparts are made of clay and chalk and because of the local materials used they have that reddish/pink colour. You can only observe the walls or walk around them, you cannot go on them.