Bushido was the moral code followed by samurai, emphasizing loyalty, courage, and honor.