元曄
Late in 530, apprehensive that Erzhu Rong would eventually seize the throne, Emperor Xiaozhuang ambushed him and killed him in the palace. Subsequently, Erzhu Rong's clan members, led by his nephew Erzhu Zhao and cousin Erzhu Shilong, defeated and killed Emperor Xiaozhuang, first making Yuan Ye the Prince of Changguang emperor, and then further replaced Yuan Ye with Emperor Jiemin. In 531, the general Gao Huan rebelled against the Erzhus. Erzhu Tianguang was initially not particularly interested in aiding his Erzhu clan members, but felt compelled to, and he departed Chang'an to head east. While Erzhu Tianguang was away, Yuwen advised Heba to rise against the Erzhus, and Heba did, defeating Erzhu Tianguang's brother Erzhu Xianshou (爾朱顯壽), whom Yuwen subsequently captured, dividing control of the territory with Houmochen. By 532, Gao had defeated the Erzhus and seized much of power, deposing Emperor Jiemin and making Emperor Xiaowu emperor instead. When Gao subsequently tried to intimidate Heba into giving up his territory and reporting to Luoyang, but under the advice of Xue Xiaotong (薛孝通), Heba refused. He made Yuwen his lieutenant, and consulted him on most important matters. In 533, Yuwen volunteered to serve as messenger to Gao in order to observe Gao's abilities, and Heba agreed. When Gao met Yuwen, Gao was impressed by the answers Yuwen had to his questions and wanted to detain Yuwen, but Yuwen left Gao's domain before Gao could seize him. Subsequently, Heba sent Yuwen to confer with Emperor Xiaowu, who was not happy about Gao's hold on power, and Emperor Xiaowu and Heba were able to enter into a secret alliance against Gao. Heba made Yuwen the governor of the key Xia Province (夏州, roughly modern Yulin, Shaanxi).