After weakening control of Abbasids, Cyrenaica was under Egypt based states such as Tulunids, Ikhshidids, Ayyubids and Mamluks before Ottoman conquest in 1517. Finally Fezzan acquired independence under Awlad Muhammad dynasty after Kanem rule. Ottomans finally conquered Fezzan between 1556 and 1577.