In 830, he further passed a special imperial examination for those with broad knowledge and grand speech.
He learnt very fast and well, which helped him pass the imperial examination at the county level in 1899.
He took the imperial examination in his early days but was not a successful candidate.
He, however, did not want to submit to imperial examinations.
In 1905, he passed the imperial examination at the county level and became Xiucai.
After that, he continued to take the imperial examination several times but all failed.
He passed only the lowest of the imperial examinations, and never held public office.
At some point, he passed the imperial examinations in the Jinshi class.
In 817, he was responsible for the imperial examinations that year.
Many individuals moved from a low social status to political prominence through success in imperial examination.