At that time, The Mongols were passing through a period of high tension with the Mamluks in Egypt and Syria, this did overwhelm the relations with the Byzantines, especially that Ghazan was preparing for another campaign to Damascus and Palestine after his first invasion in 699 AH / 1299 CE, in which many civilians were massacred and where the Mamluk army suffered a massive defeat at the Battle of Wadi al-Khaznadar near Ḥimṣ. The Mamluks themselves were preparing for the upcoming war with the Mongols aiming to wash away the shame of their previous defeat. As a result, On 2 Ramaḍān 702 AH / 20 April 1303 CE, the Mongols and Mamluks engaged in a fierce battle on the outskirts of Damascus, known as the Battle of Shaqhab or Battle of Marj al-Saffar, in which the Mamluks won a decisive victory. This devastating defeat had a heavy toll on Ghazan and seems to have contributed to deteriorating his health further more, until he died in Qazvin on Sunday 11 Shawwāl 703 AH / 17 May 1304 CE. This eliminated any hope of a Byzantine-Mongol alliance, and allowed the Ottomans to continue on with their conquests.