A complicated power struggle ensued in the 930s. Al-Qasim, who ruled parts of the north of the country, initially sided with the Fatimids against the renegade Fatimid general Musa ibn Abi'l-Afiya.
In the 930s, a fierce conflict for power erupted. Al-Qasim, who held sway over northern territories, initially aligned with the Fatimids against the rebellious Fatimid general Musa ibn Abi'l-Afiya.