Abu'l-Qasim al-Husayn ibn Ali al-Maghribi

Abu'l-Qasim al-Husayn ibn Ali al-Maghribi (Arabic: أبو القاسم المغربي; Aleppo, May 981 – Mayyafariqin, 1027), also called al-wazir al-Maghribi ("the Western Vizier") and by the surname al-Kamil Dhu'l-Wizaratayn ("Perfect Possessor of the Two Vizierates"),[1] was the last member of the Banu'l-Maghribi, a family of statesmen who served in several Muslim courts of the Middle East in the 10th and early 11th centuries.

After his father's execution, he fled to Palestine, where he raised the local Bedouin leader Mufarrij ibn Daghfal to rebellion against the Fatimids (1011–13).

Ali defected to the rebel camp, but Bakjur's assault failed, and the Banu'l-Maghribi were forced flee to Egypt and the "lusher pastures of the Fatimid court", in the words of Hugh N.

[1][4] In Egypt, Ali rose to senior posts in the caliphal administration, while Abu'l-Qasim received his education as a katib, and in the early reign of Caliph al-Hakim bi-Amr Allah (r. 996–1021) acquired an influential position in the Diwan al-Sawad (the fiscal bureau responsible for the land tax).

[1][5] Soon, however, the Banu'l-Maghribi became involved in the intrigues between various factions of the Fatimid court, and in 1009/10, the powerful Christian vizier, Mansur ibn Abdun, convinced al-Hakim to have all the members of the family executed.

[6][14] Abu'l-Qasim's alleged conversations with the Nestorian archbishop Elijah of Nisibis form the basis of that cleric's Book of Sessions (Arabic: Kitāb al-Majālis), covering religious, literary, and linguistic topics.