young to rule and state affairs were managed by his mother Orghana. In 1260, Ariq Böke replaced Mubarak Shah with Alghu, a grandson of Chagatai Khan. Alghu rebelled against Ariq Böke upon securing power and defected to Kublai Khan's side in the Toluid Civil War. Ariq Böke attacked him and while Alghu experienced initial success in fending off Ariq Böke's army, was forced to flee to Samarkand in 1263. Ariq Böke devastated the Ili region in his absence. Alghu was able to recruit a new army with the aid of Orghana and Mas'ud Yalavach. He then went on to defeat an invasion by Kaidu and drive out Ariq Böke, who surrendered to Kublai in 1264. Alghu died in 1265 and Orghana placed her son, Mubarak Shah, on the throne once again. Mubarak Shah was the first Chagatai khan to be converted to Islam. His rule was cut short by his cousin Ghiyas-ud-din Baraq, who deposed him with the support of Kublai Khan. Reign of Kaidu (1266–1301) Ghiyas-ud-din Baraq came into conflict with Kublai Khan on the administration of the Tarim Basin. Baraq drove out an agent sent by Kublai to govern the region and when Kublai sent a detachment of 6,000 horsemen, Baraq met them with 30,000 men, forcing them to retreat. Baraq also came into conflict with Kaidu, who enlisted the Golden Horde khan Mengu-Timur in attacking Baraq. With a Golden Horde army of 50,000 at his back, Kaidu forced Baraq to flee to Transoxania. In 1267, Baraq accepted peace with Kaidu, and relinquished the territory east of Transoxania. Kaidu then coerced Baraq into invading the Ilkhanate. Baraq attacked first, defeating Prince Buchin, the governor of Khorasan, and brother of Abaqa Khan. Abaqa rushed from Azerbaijan and defeated Baraq near Herat on 22 July 1270, forcing him to retreat. On the way back he fell from his horse and was crippled so he spent the winter in Bukhara where he died not long after. He converted to Islam before his death. Baraq's four sons and two sons of Alghu rebelled against Kaidu in the wake of Baraq's death, but they were continually defeated. Kaidu enthroned Negübei as the khan in Transoxania. When Negübei rebelled, he was killed and replaced with another khan, Buqa Temür in 1274. It is uncertain when Buqa Temür died, but after that, Baraq's son Duwa was enthroned as khan. Meanwhile, Abaqa invaded Transoxania in 1272