KAIROUAN:
City wall and gates
The walls right to the west of Bab ech-Chouhada.
The oldest gate of the city walls, the Bab al-Khoukha, which dates back to 1706.
In from the city walls, few buildings lean on the walls. There are occasionally small kiosks built into the wall structure, often used as shops. You can make out the door to one of those on this photo.
The history of Kairouan's city walls date back to 761, but have been destroyed and rebuilt numerous times. Today's discontinuing walls are far from as old as they seem, many parts were rebuilt as late as after World War 2. The oldest surviving parts date back to the 18th century, as do the oldest gate. The best wall parts are around the Bab Chouhada, which also serves as the main entrance to the most popular areas of the medina. I highly recommend an evening stroll along the walls, when headlights create an effect equal to the best Oriental images of the Muslim city.