The able Rasulid commander in San'a, Alam ad-Din Sinjar al-Sha'bi, defeated the Zaidis in 1273, and in the following year, al-Mahdi Ibrahim made peace with Sultan al-Muzaffar Yusuf.
[1] However, in August 1275, a corps of rebellious slave soldiers seized San'a, and invited the imam and the Zaidi strongman Sarim ad-Din Da'ud to reside in the city.
Sarim ad-Din Da'ud took a position on a summit, but his troops were heavily defeated, and he barely slipped away.
The Rasulid sultan treated his prisoner with great courtesy and gave him a house to live in Ta'izz.
Personally, although generally unsuccessful in his political affairs, al-Mahdi Ibrahim was acclaimed as a brave warrior, famous horseman, and a good poet.