Emperor Taiwu of Northern Wei
It is not known when Juqu Wuhui was born. The first historical reference to him was in 437, by which time Juqu Mujian had made him the governor of Jiuquan Commandery (酒泉, roughly modern Jiuquan, Gansu). After the Northern Liang capital Guzang (姑臧, in modern Wuwei, Gansu) was captured by Northern Wei forces, and Juqu Mujian was seized by Emperor Taiwu of Northern Wei, in 439, Northern Wei forces attacked remaining cities held by Juqu clan holdouts, and Juqu Wuhui, after he was joined in Jiuquan by his brother Juqu Yide (沮渠宜得), abandoned Jiuquan and fled initially to Jinchang (晉昌, in modern Jiuquan as well) and then to Dunhuang (敦煌, in modern Dunhuang, Gansu).