section_path: History/Disintegration into competing entities/Development of the khanates
section_name: Development of the khanates
paragraph_text: Development of the khanates
  
  In spite of his conflicts with Kaidu and Duwa, Yuan emperor Temür established a tributary relationship with the war-like Shan people after his series of military operations against Thailand from 1297 to 1303. This was to mark the end of the southern expansion of the Mongols.
  
  When Ghazan took the throne of the Ilkhanate in 1295, he formally accepted Islam as his own religion, marking a turning point in Mongol history after which Mongol Persia became more and more Islamic. Despite this, Ghazan continued to strengthen ties with Temür Khan and the Yuan dynasty in the east. It was politically useful to advertise the great khan's authority in the Ilkhanate, because the Golden Horde in Rus had long made claims on nearby Georgia. Within four years, Ghazan began sending tribute to the Yuan court and appealing to other khans to accept Temür Khan as their overlord. He oversaw an extensive program of cultural and scientific interaction between the Ilkhanate and the Yuan dynasty in the following decades.
  
  Ghazan's faith may have been Islamic, but he continued his ancestors' war with the Egyptian Mamluks, and consulted with his old Mongol advisers in his native tongue. He defeated the Mamluk army at the Battle of Wadi al-Khazandar in 1299, but he was only briefly able to occupy Syria, due to distracting raids from the Chagatai Khanate under its de facto ruler Kaidu, who was at war with both the Ilkhans and the Yuan dynasty.
  
  Struggling for influence within the Golden Horde, Kaidu sponsored his own candidate Kobeleg against Bayan (r. 1299–1304), the khan of the White Horde. Bayan, after receiving military support from the Mongols in Rus, requested assistance from both Temür Khan and the Ilkhanate to organize a unified attack against Kaidu's forces. Temür was amenable and attacked Kaidu a year later. After a bloody battle with Temür's armies near the Zawkhan River in 1301, Kaidu died and was succeeded by Duwa.
  
  Duwa was challenged by Kaidu's son Chapar, but with the assistance of Temür, Duwa defeated the Ögedeids. Tokhta of the Golden Horde, also seeking a general peace, sent 20,000 men to buttress the Yuan frontier. Tokhta died in 1312, though, and was succeeded by Ozbeg (r. 1313–41), who seized the throne of the Golden Horde and persecuted non-Muslim Mongols. The Yuan's influence on the Horde was largely reversed and border clashes between Mongol states resumed. Ayurbarwada Buyantu Khan 's envoys backed Tokhta's son against Ozbeg.
  
  In the Chagatai Khanate, Esen Buqa I (r. 1309–1318) was enthroned as khan after suppressing a sudden rebellion by Ögedei's descendants and driving Chapar into exile. The Yuan and Ilkhanid armies eventually attacked the Chagatai Khanate. Recognising the potential economic benefits and the Genghisid legacy, Ozbeg reopened friendly relations with the Yuan in 1326. He strengthened ties with the Muslim world as well, building mosques and other elaborate structures such as baths. By the second decade of the 14th century, Mongol invasions had further decreased. In 1323, Abu Said Khan (r. 1316–35) of the Ilkhanate signed a peace treaty with Egypt. At his request, the Yuan court awarded his custodian Chupan the title of commander-in-chief of all Mongol khanates, but Chupan died in late 1327.
  
  Civil war erupted in the Yuan dynasty in 1328–29. After the death of Yesün Temür in 1328, Tugh Temür became the new leader in Khanbaliq, while Yesün Temür's son Ragibagh succeeded to the throne in Shangdu, leading to the civil war known as the War of the Two Capitals. Tugh Temür defeated Ragibagh, but the Chagatai khan Eljigidey (r. 1326–29) supported Kusala, elder brother of Tugh Temür, as great khan. He invaded with a commanding force, and Tugh Temür abdicated. Kusala was elected khan on 30 August 1329. Kusala was then poisoned by a Kypchak commander under Tugh Temür, who returned to power.
  
  Tugh Temür (1304–32) was knowledgeable about Chinese language and history and was also a creditable poet, calligrapher, and painter. In order to be accepted by other khanates as the sovereign of the Mongol world, he sent Genghisid princes and descendants of notable Mongol generals to the Chagatai Khanate, Ilkhan Abu Said, and Ozbeg. In response to the emissaries, they all agreed to send tribute each year. Furthermore, Tugh Temür gave lavish presents and an imperial seal to Eljigidey to mollify his anger.