Imperial examination
Huang Tingjian failed his "jinshi" in the Imperial examination, at his first attempt, in 1064, but was passed in 1067, when he was 22 years old. His first employment was in Song Shenzong's first year as emperor.