The hatamoto (direct retainers of the bakufu, which is a form of Japanese feudal government headed by a shogun) of bakufu were 'samurai' and the gokenin (an immediate vassal of the shogunate in the Kamakura and Muromachi through Edo periods) were 'kachi.'
幕府の旗本は「侍」、御家人は「徒士」である。