Seppuku was a key part of bushido, the honor code of the samurai warriors. It was used by warriors so that they would not fall into enemy hands and be shamed. It was possible also that a samurai received an order from his master to commit seppuku. 