The failure and brutal suppression of Muhammad and Ibrahim's revolt was followed by a large-scale reprisal campaign against the Alids, many of whom were imprisoned or killed, until the death of al-Mansur brought about another period of attempts at conciliation under al-Mahdi (r. 775–785), which ended after another Alid uprising in 786.[1] The relationship of the Abbasids with the Alids remained troubled: periods of repression, usually following pro-Alid revolts, were alternated with periods of relative tolerance. Although al-Ma'mun (r.