The Ritsuryo system, brought in Japan during the latter half of the seventh century, adopted the Ryosen system which largely divided the people into the Ryomin (lit. good people) and the Senmin (the lowly persons) after a model from China (the Law of Ryosen, enacted in 645).
7世紀後半に日本に導入された律令制は、中国のそれに倣って、国民を良民と賤民とに大別する良賤制を採用した（良賤の法、645年制定）。