Officials in any of the senior grades of the former imperial Chinese civil service. Mandarins were chosen by examination, and there were nine grades, each of which was distinguished by a distinctive round ornament or button on top of the official headgear.