The Forty Seven Ronin. A rōnin (浪人) was a samurai with no lord or master during the feudal period of Japan. A samurai became masterless from the death or fall of his master, or after the loss of his master's favor or privilege.
Bushido (The Way of the warrior), the samurai code of ethics, was formalized in writing in the sixteenth century and adhered to for some three hundred years. Bushido placed emphasis on certain chivalrous virtues such as loyalty, courage, and courtesy.