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.