But while his fate is uncertain, his legacy is not. Khalid ibn Hamid's victories permanently broke the Umayyad hold on the western Maghreb. As a result, Morocco would spin off into an independent future, and never again come under the rule of an eastern caliphate.