In late imperial China, the examination system was the major mechanism by which the central government captured and held the loyalty of local-level elites.
The examination based civil service thus promoted stability and social mobility.