and sacked Bukhara, carrying off 50,000 captives. In 1275, Duwa joined Kaidu in the war against the Yuan dynasty but were repelled. In 1295, Duwa invaded the Punjab and devastated the region. Several invasions of the Delhi Sultanate also occurred but none were able to make any headway. In September 1298, Duwa captured Temür Khan's son-in-law, Korguz, and put him to death, but immediately after that suffered a disastrous defeat by Yuan forces. In 1301 they were defeated again in an attack on Karakorum and Kaidu died during the retreat. Foreign wars (1301–1325) After Kaidu's death in 1301, both Duwa and Kaidu's son Chapar recognized Yuan authority in 1303. However Duwa threw off his allegiance to Chapar. Both the Yuan dynasty and Duwa attacked Chapar, forcing him to surrender his territory to Duwa in 1306. Meanwhile, Prince Turghai invaded the Delhi Sultanate in 1303 and looted the Delhi region. In 1304 they invaded again but suffered a crushing defeat. Duwa died soon after and was succeeded by his son Könchek, who ruled only for a year and a half before he died. One of Buqa Temür's brothers, Taliqu, seized power, but Duwa's family rebelled and killed him at a banquet. Duwa's younger son Kebek became khan. Kebek invaded the Delhi Sutunate again in 1305, looting the Multan region, but suffered a defeat on the way back. Chapar took advantage of the political turmoil to attack Kebek but was defeated and fled to the Yuan dynasty. Another kuriltai was held in the Chagatai Khanate, which elected another of Duwa's sons, Esen Buqa I, who took the throne ceded by Kebek. In 1315, Esen Buqa invaded the Ilkhanate in support of Duwa's grandson, Dawud Khoja, who had set himself up in eastern Afghanistan. He defeated an Ilkhanate army on the Murgab and reached as far as Herat, but was forced to retreat when the Yuan dynasty attacked him from the east. The Yuan army devastated the Issyk-Kul region. In 1315 the Chagatayid prince Yasa'ur defected to the Ilkhanate, only to rebel, taking Khorasan. Both Chagatai and Ilkhanate forces attacked Yasa'ur. He was killed as he fled. Esen Buqa I died in 1318, at which point Kebek returned to power. He made peace with the Ilkhanate and the Yuan dynasty and reigned until 1325. Religious conflict (1325–1338) Kebek was succeeded by his three brothers in succession. Eljigidey and Duwa Temür each reigned for