During the last years of Temür, a peace among the Yuan dynasty and the western Mongol khanates (Golden Horde, Chagatai Khanate, Ilkhanate) was achieved around 1304 after the Kaidu–Kublai war that had lasted for more than 30 years and caused the permanent division of the Mongol Empire. Temür Khan was recognized as their nominal suzerain. While the peace itself was short-lived and the war soon resumed, this established the nominal supremacy of the Yuan dynasty over the western khanates that lasted for a few decades.