The samurai were the soldier-nobles of feudal Japan, similar to the knights of feudal European society. Their position was hereditary and they served a daimyo in return for land. Below the samurai were foot soldiers. From 1603 to 1867, the Tokugawa Shogunate ruled Japan.