 He was responsible for tax collection, justice, postal service, police, granaries, salt stores, social welfare, education, and religious ceremony.The magistrate's complex (yamen) was sited at the center of this the city at the point where the main east-west street crossed the main north-south street.The main entrance was in the south and axially aligned along the main north south street connecting to the south gate of the walls.