Samurai warriors were the primary military and lower nobility of medieval and feudal Japan. Samurai described themselves as followers of Bushido, or "The Way of the Warrior."
A tradition passed down through generations, Bushido stated that the path of the warrior was one of honor. Highly valued traits were duty to one's master and loyalty until death.
Being a high-ranking samurai came with many benefits and rewards. Primary among all of them was respect, and any person who paid them disrespect would fall under their katana. In order to keep their honor, samurai in Japan were allowed to execute civilians that disrespected them.
The other important right that samurai were given was the ability to carry weapons in public. Legally, they were the only social class allowed to bear arms.