Imperial law divided subjects into
良 ('good': free commoners,
良民) and
贱 ('mean':
贱民). Those on the
贱籍, such as slaves, entertainers and some hereditary servant groups, could not sit the imperial examinations (
科举) or marry commoners. The Yongzheng emperor freed several of these groups in the 1720s.