"An Execution by an Eliphant" (sic), from "An Historical Relation Of the Island Ceylon" by Robert Knox (London, 1681)
In the past, many rulers in south and southeast Asia had people **crushed by elephants** as a death penalty. This was common for more than 4000 years. The Romans and Carthaginians also sometimes did this.

The elephant would step upon the head of the condemned, the one commanded to die. Usually, handlers trained the elephant to put its large foot gently on the person's head. At this point, witnesses looked under the elephant's foot to make sure the prisoner was the one who committed the crime. Often, the condemned would scream and beg the witnesses to say it was not him. If a witness stated this was not the criminal, they would probably commit perjury. In those days rulers could punish perjury with death. Few witnesses denied the condemned was the criminal, because then the elephant may crush them instead. Then the mahout, or elephant driver, gave the order, and the elephant would push down with its weight. The skull broke and the foot crushed the head flat.

Sometimes, the elephant would drag the condemned through streets before the crushing. Some elephants crushed the arms and legs first, to increase the pain.

Locations
---------

Most rajahs, Indian rulers, kept elephants for death by crushing. The public could often see the deaths. This was the rulers' warning not to commit a crime. Many of the elephants were very large, weighing more than nine tons. Rulers wanted crushing by elephant to be bloody and gross. Some rulers in history condemned children. 

One nonreligious Mogul Emperor, Akbar (1547-1605), used his favorite elephant as a judge. Akbar ruled in the city of Agra from 1570-1585. He believed that his favorite elephant could know who was guilty. He put thousands of people to death this way. Even when the crimes were minor, he sent them to the elephant. Elephant handlers staked them before the great elephant and tried to convince it to step on them. The huge elephant crushed most, but sometimes refused. Akbar believed this proved their innocence and then released them. 

Different regions crushed people by elephant in different ways. One region put people inside of a bag, so they would not have to watch what was about to happen. Then, the elephant would crush the bag flat with the condemned inside. In another region, people made the condemned watch the elephant slowly come from far away. Its huge feet kept coming closer. Sometimes, they buried the condemned to the neck. The elephant would come and step on the head. Some places made the condemned put his head on a special stand. The stand had fountains on the sides where brains and blood would flow when the elephant pressed down its huge foot.

Military use
------------

For hundreds of years, people used elephants for military purposes. Death under the foot of an elephant was common for people who left the army or prisoners as well as for military criminals.

History in writing
------------------

There are few records about crushing by elephant. Many records were lost. The British wrote about about it during their long rule of India.

Robert Knox was an English traveler. He wrote about a Sri Lankan crushing in 1681.

*The King makes use of them for Executioners; they will run their Teeth through the body, and then taer* (sic) *it in pieces, and throw it limb from limb. They have sharp Iron with a socket with three edges, which they put on their Teeth at such times...*  
(*An Historical Relation Of the Island Ceylon*, Robert Knox, London, 1681)

Wikimedia Commons has media related to ***Execution by elephant***.