 Zengi, because of the murder of Dubays, set up a rival Sultanate.Mas'ud attacked; the Caliph and Zengi, hopeless of success, escaped to Mosul.The Sultan regained power, a council was held, the Caliph was deposed, and his uncle, son of Al-Muqtafi, appointed as the new Caliph.