Outside the glamour, wealth, and intrigues of the imperial court and the bustle and commercial whirl of the capital, provincial China was governed by an extensive bureaucracy.16 The smallest official unit was the district, the xian, headed by a magistrate, who was supposed to serve as a moral exemplar for the people.