Al-Mustanjid (died 1170) was the Abbasid Caliph in Baghdad from 1160 to 1170. He was the son of previous Caliph al-Muqtafi. One of al-Muqtafi's wives wanted her own son to succeed. She gained over many Amirs to her side, and had their slave-girls armed with daggers to kill the new Caliph. Al-Mustanjid discovered the plot and placed the rebel son and mother in prison.
Around this time, Fatimid dynasty was at last extinguished, having lasted for 260 years. Their conqueror, Saladin, though himself an orthodox Muslim, initially didn't proclaim the Sunni faith in the midst of a people still devoted to the tenets and practice of the Shi'a sect. But he soon found himself able to do so; and thus the spiritual supremacy of the Abbasids again prevailed, not only in Syria, but throughout Egypt and all its dependencies.
There is little else to say than that this Caliph continued to occupy a more or less independent position, with a Vazir and courtly surroundings, and supported by only a small force sufficient for an occasional local campaign.
Abdullah al-Mahdi Billah (r. 909-934) (Arabic: عبد الله بن الحسين بن أحمد بن عبد الله بن محمد بن اسماعيل بن جعفر المهدي), often referred to as Ubayd Allah, is the founder of the Fatimid dynasty, the only major Shi'a caliphate in Islam, and established Fatimid rule throughout much of North Africa.
At the beginning of the Abbasid realm in Baghdad, the Alids faced severe persecution by the ruling party as they were a direct threat to the Abbasid Caliphate. Owing to the political complexities, the forefathers of Imam Abdullah opted to conceal themselves which helped them secure the Dawa's existence. Subsequently, these Imams traveled long and far towards the Iranian Plateau and distanced themselves from the epicenter of the political scenario. Al Mahdi's father, Imam al Husain al Mastoor returned in secrecy to Syria and began to control the Dawa's affairs from there in complete concealment. He sent two Dai's of great calibre, abul Qasim and Abu 'Abdullah Al-Husayn Al-Shi'i to Yemen and Western Africa respectively to build the foundation for what was to be the Fatimid Caliphate.