The Mongols were allied with the Song, but this alliance was broken when the Song recaptured the former imperial capitals of Kaifeng, Luoyang, and Chang'an at the collapse of the Jin dynasty. After the first Mongol invasion of Vietnam in 1258, Mongol general Uriyangkhadai attacked Guangxi from Hanoi as part of a coordinated Mongol attack in 1259 with armies attacking in Sichuan under Mongol leader Möngke Khan and other Mongol armies attacking in modern-day Shandong and Henan. On August 11, 1259, Möngke Khan died during the Siege of Diaoyu Castle in Chongqing.