War elephants were trained elephants used in battle to break enemy lines, terrify horses and carry archers. The practice began in ancient India, spread west to the Hellenistic kingdoms and Carthage and east into Southeast Asia, and lasted for more than two thousand years. They were beaten by opening lanes for them to pass, by missiles aimed at their drivers, by noise and terrain, and finally by gunpowder.
Few sights on an ancient battlefield were as frightening as a line of elephants advancing at a trot. Horses that had never smelled them bolted; infantry that had never seen them broke. Yet the elephant was also the most unpredictable weapon ever taken to war, quite capable of turning round and trampling its own side.
Here is the history of war elephants, battle by battle: where they came from, what they achieved, how famous generals such as Alexander, Pyrrhus, Hannibal and Babur used them or beat them, and why they finally disappeared.
Born in India
The war elephant was an Indian invention. Elephants eat so much that breeding them in captivity was uneconomic, so Indian kings captured wild adults and trained them1, and protected the elephant forests as a royal resource. By the time of the Mauryan empire an Indian army was counted in four arms: infantry, cavalry, chariots and elephants.
From India the institution spread west to the Mediterranean and east into Southeast Asia, but never took root in China1. The Persians met it first; at Gaugamela in 331 BC Darius III fielded fifteen elephants against Alexander2, though they seem to have done little.
Hydaspes, 326 BC: Alexander against Porus
The Macedonians faced elephants in earnest on the Jhelum river in the Punjab. At the Battle of the Hydaspes, King Porus lined his front with elephants; ancient figures range from 85 to 200, and Arrian puts Porus's elephants at about 2002. Alexander's horses would not face them, so he crossed the river upstream at night and fought around them.
The phalanx then attacked the beasts directly, shooting down their drivers and striking at trunks and legs. Wounded and leaderless, the elephants crowded back into Porus's own ranks and trampled friend and foe alike. Alexander won, but the lesson was not lost on his successors. Seleucus later gave up his Indian provinces to Chandragupta Maurya and, by Plutarch's account, received 500 elephants in return3, which helped him win the battle of Ipsus in 301 BC.

Pyrrhus brings elephants to Italy
When King Pyrrhus of Epirus crossed to Italy in 280 BC to fight Rome, he landed with twenty elephants3. The Romans had never faced elephants before4, and at Heraclea the charge of the beasts broke the Roman cavalry and helped decide the battle.
The Romans adapted quickly. At Asculum in 279 BC Pyrrhus won again, but at such cost that his name became a byword for a ruinous victory. At Beneventum in 275 BC the Romans drove his elephants back into his own lines, and Pyrrhus left Italy for good.
Hannibal's elephants and the Alps
No war elephants are more famous than Hannibal's, yet their military record is modest. He led them out of Spain in 218 BC and got them over the Alps; the figure usually given, 37, comes from later ancient writers, and estimates vary. That they survived the passes at all was a remarkable feat of logistics.
They fought at the Trebia in December 218 BC, where they helped scatter the Roman flanks. But the winter that followed was brutal, and Polybius says that all but one of the elephants died5. Tradition holds that Hannibal rode the last survivor through the flooded marshes of Etruria. His great victories at Trasimene and Cannae were won without elephants.

Raphia, 217 BC: elephant against elephant
The only battle in which we know African and Indian elephants fought each other was Raphia, near Gaza, between Ptolemy IV of Egypt and Antiochus III of the Seleucid empire. Polybius gives Ptolemy 73 African elephants against 102 Indian ones5 on the Seleucid side.
According to Polybius, most of Ptolemy's elephants would not face the larger Indian animals and fled, disrupting their own lines. He believed the African elephants were smaller; modern scholars question that explanation. Yet Ptolemy still won the battle with his phalanx, a reminder that elephants rarely decided a battle on their own.
Zama, 202 BC: how Scipio neutralised the elephants
At Zama, the last battle of the Second Punic War, Hannibal opened with a charge of over eighty elephants5, many of them reportedly hastily trained. Scipio was ready. Instead of the usual chequerboard he drew up his maniples one behind another and left lanes through his ranks, screened by light troops5.
When the elephants came on, Roman trumpets and shouting panicked some, who turned back into the Carthaginian cavalry; the rest were steered by the skirmishers' javelins down the empty lanes and out behind the Roman lines. Hannibal's opening blow was spent, and the battle was decided by infantry and by the Roman and Numidian horse.
India and Southeast Asia: the long afterlife
In the Mediterranean the elephant faded after the Punic Wars, but in India it remained the heart of royal armies for another seventeen centuries, and in Southeast Asia the Khmer, Thai and Burmese kingdoms kept elephant corps whose battles are carved on the walls of Angkor.
Gunpowder ended the age. At the First Battle of Panipat in 1526 Babur, by his own estimate, faced an army of about 100,000 men with nearly 1,000 elephants6; his cannon and matchlocks behind a line of carts panicked the beasts and broke Ibrahim Lodi. Fifty years later, at Haldighati, elephants of Mewar and the Mughals still duelled in the pass, but the Mughals already had muskets, and a musket ball wounded the driver of Mewar's leading elephant. By the Third Battle of Panipat in 1761 the guns had won the argument for good.

How were war elephants defeated?
Armies learned several answers. The first was to let the charge pass, opening lanes as Scipio did. The second was to kill or wound the driver, because an elephant without its mahout was a danger to everyone. The third was noise and fear: trumpets, shouting and, later, gunfire. Ancient writers also tell of flaming pigs set loose against elephants at Megara, a story best treated as legend.
Terrain mattered too: elephants were slow on broken ground and useless in deep mud or narrow passes, and they needed huge amounts of food and water. Above all, gunpowder steadily reduced their value in the seventeenth century7, when a single cannon could stampede a herd that had taken years to train.
