Córdobian Civil war (Ard Marjhoola)

The Córdobian Civil war was a conflict inside of the Caliphate of Córdoba, with Muhammad Ibn Abi Aamir openly revolting against the ruling Caliph Hisham II in 1004. Muhammad brought in mercinaries from north Africa to take over, but Hisham had enough followers inside of Córdoba at the time to repel the initial attempt. He immediately sent word to Berbers in north Africa who his grandfather Abd-ar-Rahman III helped to come to his aid, in exchange for a political union of Moors and Berbers if successful. Hisham had promised them the title of Chancellor, Muhammad's job under him; effectively a 2nd in command. The Berbers agreed and sent troops back, and once joined to the Loyalist army hunted Muhammad down and he was quickly executed.

The result was such that the Berbers would now control the position of Chancellor, a position that would grow with power with each passing Caliph; and with this newly aquired mandate seeked the once independent Berber tribes to come under their united banner.