The traditional Middle Eastern city is walled.
Walls have gates, which are points of access to the city.
Until a generation ago, these gates were closed at night. A gatekeeper stood guard to see that only people who belonged in that section of the city were let in at night. During the day, gates were open, just as you see Bab Aguenaou here. You also see a variety of Marrakechis here. Moroccan city women, and women from the country when they come into the city, typically wear an overgarment called the djellaba.