The king of Ai he hanged on a tree until the evening: and at the going down of the sun Joshua commanded, and they took his body down from the tree, and cast it at the entrance of the gate of the city, and raised thereon a great heap of stones, to this day.
and cast it at the entering of the gate of the city; this was done, according to Ben Gersom and Abarbinel, that it might be publicly known to the rest of the kings of the nations, that they might be afraid to fight with Israel: