After the Mongol defeat in the Battle of Ain Jalut against the Mamluks, Badr al-Din's son sided with the latter; this led to the city's destruction. It later regained some importance but never recovered its original splendor. Mosul was thenceforth ruled by the Mongol Ilkhanate and Jalairid Sultanate and escaped Timur's destructiveness.