Led by the victor of 'Ain Jalut, Sultan Baibars, the Egyptian forces conducted an aggressive policy towards the Mongols, advancing through the Armenian Kingdom of Cilicia to attack and defeat the Mongol-dominated Sultanate of Rûm in the Battle of Elbistan (1277 AD). Sporadic warfare continued. The Mamluks were victorious in the Second Battle of Hims (1281) against the armies of Abaqa Khan. The Mongols defeated the Mamluks in 1299 in the Battle of Wadi al-Khazandar, and the Mamluks regained the ascendancy at the Battle of Marj al-Saffar in 1303. It was not until 1323 that the two sides signed a peace treaty.