Elephants are more tractable than horses: while a horse can be trained to charge into battle, it will not willingly trample an enemy soldier, and will instead step over him. Elephants will trample their enemies, hence the popularity of war elephants with generals such as Hannibal. Elephants can be trained to execute prisoners in a variety of ways, and can be taught to prolong the agony of the victim by inflicting a slow death by torture or to kill the condemned quickly by stepping on the head.