This question came from:
How was law enforcement handled in large US cities before professional police?
China (Zhōng Gúo 中国) has had very large cities with more than a million people since the early middle ages. For example Chang'an (长安) around the years 600 to 900 had approximately 2 million people. How did they manage law enforcement and control before modern times?