Palmyra was used as a refuge by Shirkuh II's grandson, al-Ashraf Musa, who allied himself with the Mongol king Hulagu Khan and fled after the Mongol defeat in the 1260 Battle of Ain Jalut against the Mamluks. Al-Ashraf Musa asked the Mamluk sultan Qutuz for pardon and was accepted as a vassal. Al-Ashraf Musa died in 1263 without an heir, bringing the Homs district under direct Mamluk rule.