Of the city's gates, one of the best-known is Bab Agnaou, built in the late 12th century by the Almohad caliph Ya'qub al-Mansur as the main public entrance to the new Kasbah.[23][29] The Berber name Agnaou, like Gnaoua, refers to people of Sub-Saharan African origin (cf.