Japanese warrior class or members of this class. The samurai appeared as administrators of the provinces representing the wealthy courtiers residing in the capital Kyoto. They formed a privileged caste until 1871, when the entire feudal system was abolished.
The samurai, who formed a social class, served the powerful clans called daimyo and military lords or shoguns, who ruled Japan from the twelfth century until 1867. The samurai were guided by a strict code called bushido ("the warrior's conduct". ), which united the ideal of loyalty and sacrifice.