After the death of al-Hadi ila'l-Haqq Yahya in 911, Muhammad was chosen to succeed him. As imam, he took the name al-Murtada Muhammad. However, the new imam felt frustrated about the moral laxity of the Yemeni population, who were slow to change their old habits. After a brief reign he abdicated in the month of Dhu al-Qadah, probably in July 912. He appears to have supported the succession of his brother an-Nasir Ahmad to the imamate. He withdrew to a life of scholarship and contemplation and died in Sa'dah, the centre of Zaydiyya rule, in May 922. As a diligent scholar and poet, he wrote several works, in particular about Zaidi rites.[2]