Background
His father was the imam al-Mansur al-Qasim al-Iyyani who briefly held power in the Yemeni inland in 999-1002, and died in 1003.
His father was the imam al-Mansur al-Qasim al-Iyyani who briefly held power in the Yemeni inland in 999-1002, and died in 1003.
Al-Husayn bin al-Qasim was a Sayyid originally from Hijaz (present-day Saudi Arabia). After the death of al-Mansur, al-Husayn set forth his claim to the imamate, in rivalry with his distant relative ad-Da'i Yusuf. He moreover claimed to be the equal of the Prophet.
He was supported by large groups from Himyar and Hamdan. The sharif was expelled from the city, pursued and killed in 1012. The rival imam ad-Da'i died in the same year.
With this, the power of al-Mahdi al-Husayn extended from Alhan to Sa'dah and San'a. However, already in 1013, the imam was in turn driven out of San'a. He was attacked by a Hamdanite force near Dhu Bin and lost his life.
For a long time afterwards, his adherents believed that he was actually not dead. He established himself in the impenetrable stronghold Shahara and was the main opponent of the Sulayhid dynasty in the second half of the eleventh century. Ja'far and his offspring headed a Zaydiyyah sect known as the Husayniyya after al-Mahdi al-Husayn.