	In summer 441, Juqu Wuhui's cousin Juqu Tang'er (沮渠唐兒), who was defending Dunhuang, rebelled. Juqu Wuhui left another cousin, Juqu Tianzhou (沮渠天周), in charge at Jiuquan, while personally attacking Juqu Tang'er, and Juqu Tang'er was killed in battle. However, as he did so, Northern Wei, still viewing him with suspicion, sent its general Daxi Juan (達奚眷) to besiege Jiuquan. With food supplies running out quickly, by winter 441, Jiuquan fell to Northern Wei forces, and Juqu Tianzhou was killed. Juqu Wuhui himself lacked food at Dunhuang, and he feared Northern Wei's next attack, and he therefore considered reestablishing his state in Xiyu. He first sent his brother Juqu Anzhou against Shanshan, but initially Juqu Anzhou was repelled. However, in 442, Juqu Wuhui abandoned Dunhuang and joined Juqu Anzhou, and the King of Shanshan, in fear, fled, and Juqu Wuhui, half of whose soldiers died of thirst on the way between Dunhuang and Shanshan, took Shanshan.