The city is located along both sides of the Fez River (also known as the Oued Bou Khareb). Although parts of the wall and some of its historic gates have disappeared, Fes el-Bali is still mostly enclosed by a long and winding circuit of defensive walls. These were entered via a number of gates, the most important of which were Bab Mahrouk (though the nearby Bab Bou Jeloud is more famous today), Bab Guissa, and Bab Ftouh. At the western end of the city were two historic kasbahs (fortified enclosures) attached to the city: the Kasbah an-Nouar, which still exists today on the northern side of Place Bou Jeloud, and the Kasbah Bou Jeloud, whose walls have since disappeared but which stood directly southwest of the current Bab Bou Jeloud gate. The Kasbah Bou Jeloud was historically the governor's residence and the seat of government control. The Almohad-built Bou Jeloud Mosque still stands there today, one of the only remnants of the original enclosure.