 Many of the Ayyubid emirs of Syria were discredited by Qutuz for collaborating with the Mongols , but since al @-@ Ashraf Musa defected and fought alongside the Mamluks at Ain Jalut , he was allowed to continue his rule over Homs . Al @-@ Mansur of Hama had fought alongside the Mamluks from the start of their conquest and because of this , Hama continued to be ruled by the Ayyubid descendants of al @-@ Muzaffar Umar . After al @-@ Ashraf Musa 's death in 1262 , the new Mamluk sultan , Baibars , annexed Homs . The next year , al @-@ Mughith Umar was tricked into surrendering Karak to Baibars and was executed soon after for having previously sided with the Mongols . 
