As in many medieval Islamic cities, the main souk streets of Fes typically run from the city's main gates to the area of the city's main mosque (in this case the Qarawiyyin and, to a lesser extent, the Zawiya of Moulay Idris II, historically known as the Shurafa Mosque), which, in turn, lies at the center of the city's main commercial and economic zones.