 Qutuz deposed al-Mansur Ali in 1259.Afterward, he purged and/or arrested the Mu'izziyah and any Bahri mamluks he could locate in Egypt in a bid to eliminate dissent towards his rule.The surviving Mu'izzi and Bahri "mamluks" made their way to Gaza, where Baybars had created a virtual shadow state in opposition to Qutuz.