 Yuan Baoju served in Emperor Xiaowu's administration as a general.In 534, Emperor Xiaowu planned to act against Gao, but Gao discovered his plan and instead marched on Luoyang.Emperor Xiaowu decided to flee to Yuwen's territory, and Yuan Baoju accompanied Emperor Xiaowu in doing so, arriving at Chang'an in late 534.