County magistrate
The county magistrate or local magistrate, under successive titles over the span of imperial China, was the official in charge of the xian ("county"), the lowest level of central government in Imperial and early Republican China. The magistrate was the official who had face-to-face relations with the people and administered all aspects of government on behalf of the emperor.