After some minor clerical experience, he was recommended as "Filially Pious and Incorrupt" by the Magistrate of Ruyang in 60 and travelled to Luoyang to serve at the imperial court.
[4] On 18 September 74,[5] Yuan was recalled to the capital to serve as Intendant of Henan, with executive responsibilities in the territory surrounding Luoyang.
In this role, the Hou Han Shu states that "the masters of the capital respected him and his name weighed heavily at the imperial court."
[6] In the succeeding years, Yuan played an active role in discussions at court regarding the stance of the Han Empire toward the Xiongnu peoples of the northern frontier.
In a conference in 85, Yuan argued in favour of a more diplomatic policy toward the Xiongnu opposed by Grand Commandant Zheng Hong (鄭弘) and Minister of Works Diwu Lun (第五倫).
In the summer of 89, a Chinese-led force advanced in three columns with minimal opposition and defeated the Northern Shanyu at Jiluo Mountain and pursued him westwards into the Altai ranges.
A final offensive in 91 destroyed the Northern Xiongnu, creating a political vacuum in its former territories which the Han empire would struggle to contain in the next two centuries.