 The Sanhaja departed from Cordoba at this time.The Zanata Berber Hammudids received the important districts of Ceuta and Algeciras.The Hammudids claimed a family relation to the Idrisids, and thus traced their ancestry to the caliph Ali.