Hafsid dynasty
Kanem rule lasted through the 13th century, until the local governors, the Banu Nasur, established their own independent state. In the early 15th century, Fezzan came under the influence of the Hafsid dynasty, and Zawila probably once again became the regional capital. At the same time, however, the disruption of the trans-Saharan trade routes affected the town's prosperity, and it lost its importance and rank of capital. When the Awlad Muhammad dynasty established Murzuk as their capital to the west of Zawila, the trade routes were diverted there, and Zawila fell into obscurity.