Badr al-Jamali

Badr al-Jamali (بدر الجمالى, 1015-1094) was a vizier, "Amir al-Juyush" (Arabic: امير الجيوش, Commander of Forces), Badi al-Duat (بدى الدعاة, Chief Missionary) and prominent statesman for the Fatimids under the Caliphate and Imamate of Al-Mustansir. He was the father of Al-Afdal Shahanshah, the next vizier of the Fatimids.

Biography
Ethnically an Armenian, he was purchased by a Syrian emir, Jamal ud-Dawla b. Ammar, for a relatively small price and converted to Islam. Later he joined Mamluks. He was later appointed as the governor of Acre during his service.

He was appointed Commander of the Armies in 1074 and died in 1094, during which he was the de facto ruler of the Fatimid empire, his authority being over everything except the Caliphate.

A split amongst the Ismāʿīlī occurred as the result of a dispute over which son should succeed the 18th Imam and Fatmid Caliph Al-Mustansir. While Nizar was originally designated Imam, his younger brother Musta'li was promptly installed as Imam in Cairo with the help of the powerful vizier al-Afdal Shahanshah, the son of Badr al-Jamali, whose daughter he was married to. Al-Afdal Shahanshah claimed that Imam Mustansir had changed his choice of successor upon his death bed, appointing his younger son Musta'li (who was married to the daughter of Badr al-Jamali, the sister of al-Afdal Shahanshah.

Structures
Badr Al-Jamali built many structures, including:
 * Al-Jam`e Al-Juyushi
 * Bab al-Futuh
 * Bab al-Nasr
 * Bab Zuweila