The civil service examination for recruitment into service of the imperial government spanned several dynasties, although the degree to which this process was utilized varied over its existence, and its use was even discontinued for periods of time.
Beginning in the Three Kingdoms period (with the nine-rank system in the Kingdom of Wei), imperial officials were responsible for assessing the quality of the talents recommended by the local elites.