Hanlin Academy
Born in Minhou in Fujian province, he obtained the highest degree in the imperial examinations in 1847 and was soon appointed to the Hanlin Academy.