Nizam al-Mulk
In 1123, Banu Mazyad general Dubais ibn Sadaqah tried to take advantage of the momentary lack of power and, after plundering Bosra, attacked Baghdad together with a young brother of the sultan, Ghiyath ad-Din Mas’ud (known as Mas'ud) He was however crushed by an army under Zengi and Ahmad ibn Nizam al-Mulk. During the same year, al-Mustarshid removed Ahmad ibn Nizam al-Mulk as his vizier. In 1125, it was the time of al-Mustarshid to rebel. He sent an army to take Wasit but was defeated near Baghdad and imprisoned in his palace the next year.