Under the baojia (保甲) system, ten households formed a jia and ten jia formed a bao. The households registered together and answered together for order in their area.
Chinese Wikipedia traces the system back to the reforms of Shang Yang. The Ming founder’s version was the harshest. It remained in force until the founding of the Republic of China in 1912.