Seppuku was used voluntarily by samurai to die with honor rather than fall into the hands of their enemies, (and likely be tortured), as a form of capital punishment for samurai who committed serious offenses, or performed because they had brought shame to themselves.