Imperial examination
Sima Guang obtained early success as a scholar and officer. When he was barely twenty, he passed the Imperial examination with the highest rank of "jìnshì" (進士 "metropolitan graduate"), and spent the next several years in official positions.