 However, he sent Wei to assist his brother Yuwen Zhao (宇文招) the Prince of Zhao in a secondary campaign near Yubi.After Emperor Wu conquered Northern Qi in 577, he returned to Yubi and took Wei back to the capital Chang'an with him, promoting Wei to the post of minister of agriculture.Subsequently, however, Emperor Wu made Wei the governor of Yan Province (延州, roughly modern Yan'an, Shaanxi), in charge of the surrounding provinces.