Bab Agnaou is one of the nineteen gates of the medina of Marrakech. It was built in the 12th century, with the aim of creating an entrance to the kasbah, the southern area of the city. The name Bab Agnaou comes from a Berber word meaning "black person".