Abbas bin al-Husayn was the son of the Imamal-Mansur al-Husayn II. When the father died in 1748, his son Ali was expected to succeed to the imamate. However, the mother of Abbas, an African slave, prepared the way for her own son. With the help of an influential qadi, the soldiery and principal governors were made to accept Abbas as the new imam. He took the name al-Mahdi Abbas. Ali was put in confinement and died in 1759. According to his younger contemporary, the renowned scholar Muhammad ash-Shawkani, al-Mahdi Abbas possessed an excellent character, being intelligent, diplomatic, resolute and just, with a good disposition to scholars. He abolished several abuses that occurred before his reign, such as irregular impositions. Among the Qasimid imams, he appears to have come closest to the Zaidi ideal of the imam as a pious and generous warrior-king.
Niebuhr's visit
The German explorer in Danish service, Carsten Niebuhr, visited Yemen in 1762-1763 at the head of a scientific expedition. He met al-Mahdi Abbas whom he described in racialist terms: "Had it not been for some negro traits, his countenance might have been thought a good one". The imam wore green robes with flowing sleeves, embroidered with gold lace. On his head he wore a large turban. Niebuhr and the other Europeans were permitted to kiss his hand and robe. In a subsequent interview, Niebuhr was allowed to show the imam their scientific instruments, and al-Mahdi Abbas posed several questions about European manners, commerce and learning. Niebuhr relates that the minister of the king's court, who held the title of nasi of the Jewish community and comptroller of the customs, as well as surveyor-general of the royal buildings and gardens, Rabbi Shalom Cohen ʿIraqi, known also as al-ʾOusṭā, fell into disrepute with the king and was imprisoned for two years in 1761 after having served under two kings for twenty-eight years. That same year, the king demolished twelve synagogues out of a total of fourteen in the city ofSana'a. Rabbi Shalom Cohen ʿIraqi was released only after paying a high ransom. At the same time, writs then issuing from the king forbade Jews in the city from building their houses higher than fourteen cubits. As for the king's jurisdiction over outlying districts, Niebuhr related that a number of areas in Yemen were autonomous or independent of imamic rule by this time:
Khawlan east of San'a under four independent shaykhs.
Jawf or Marib under a Sharif and independent shaykhs.
Yafa under the sultans of Rassas-Maidabah, Mawsatah and Qarah.
Political events
Al-Mahdi Abbas reportedly preserved the shrunk borders of the Zaidi state vigorously. His reign was punctuated by a series of internal conflicts which he managed to overcome. In spite of the autonomous position of the Hashid and Bakil tribes, the imam kept several regiments of tribesmen, and paid them better than others. In 1750 a certain magician Ahmad al-Hasani attacked Hashid and Bakil forts but was eventually slain. In 1759 a raid by Bakil tribesmen was likewise defeated, as was a revolt by Barat tribes in 1770. Religious opposition to the imam's rule surfaced in 1768. Some qadis propagated revolt against the imam's governors since the people of San'a acted in a heretic way. They did not gain a following, however. In San'a itself, the scarcity of corn caused a rebellion in 1772. Al-Mahdi Abbas led a force that defeated the insurgents. At his help he had a Scotch and a French renegade of military experience.
Economic conditions and end of reign
The account of Niebuhr testifies to the relative economic decline of the Zaidi state. While the revenue in the 17th century had been as much as 830,000 riyals per year, it decreased drastically to 300,000 under the reign of al-Mansur al-Husayn II. Under al-Mahdi Abbas the annual revenue again rose to 500,000 riyals, still far below the record years before the 1720s, which had been conditioned by the lucrative coffee trade. Nevertheless, al-Mahdi Abbas was a wealthy prince, who erected several public buildings and mosques in San'a. Al-Mahdi Abbas died in 1775, and the imamate was successfully claimed by his son al-Mansur Ali I.