 The various sub-groups of the Maqils behaved differently towards the competing dynasties of Banu Merin and Banu Abdelwad (both of these were Zenata).The Kharaj of Banu Ubayd Allah initially opposed the Zenata Abdelwadids, but later allied with them when they were severely defeated by Yghmoracen, the first Abdelwadid Sultan.When the Merinids replaced the Abdelwadids the Kharaj remained faithful to the Abdelwadids since those, at the decline, had given them tax collection privileges.