Throughout the history, 13 kasbahs were constructed surrounding the old city.[84] Among the most prominent among them is the Kasbah An-Nouar, located at the western or north-western tip of Fes el-Bali, which dates back to the Almohad era but was restored and repurposed under the Alaouites.[2] Today, it is an example of a kasbah serving as a residential district much like the rest of the medina, with its own neighborhood mosque.