Zirid dynasty
Ibn Ziri's Berber Zirid dynasty ultimately broke away from the Shiite Fatimids, and recognised the Sunni Abbasids of Baghdad as rightful Caliphs. In retaliation, the Fatimids brought about the migration of thousands from mainly two Arab Qaisi tribes, the Banu Sulaym and Banu Hilal to North Africa. This act drastically altered the fabric of the Libyan countryside, and cemented the cultural and linguistic Arabisation of the region.