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.
In battle, katana was typically paired with the medium sword wakizashi. Both were worn by members of the Japanese warrior class. The two weapons together were called the daisho, and represented the social power and personal honor of the samurai.