Answer
The Maghrawa, a Berber tribe, received the support of Abd al-Rahman III, the Umayyad ruler of Córdoba, in their struggle against the Fatimids, a rival Muslim dynasty that was expanding across North Africa. By backing the Maghrawa, Abd al-Rahman III aimed to curb the Fatimids' influence and protect his own domains in Spain from potential threats.