The social class in Japan was precisely divided into four classes, putting the samurai at the top as the ruling class and farmers, craftsmen, and merchants into lower classes in order to put them under the samurai class.
支配階層を武士として、それ以外の農民、職人、商人はその下に入る階層として厳密に区別された。