The samurai were a class of professional warriors in Japan from the 11th century to the 19th century. They were known for their skill in combat and their loyalty to their masters. Samurai were expected to live by a code of honor known as Bushido, which stressed bravery, loyalty, and obedience.