And the king of Ai he hanged on a tree until eventide
By way of terror to other kings in the land of Canaan, that should refuse to submit unto him:
and as soon as the sun was down, Joshua commanded that they should
take his carcass down from the tree;
according to the law in ( Deuteronomy 21:23 ) ; and that the land might not be defiled:
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:
and raise thereon a great heap of stones, [that remaineth] unto this
day;
as a sepulchral monument, showing that there was a person lay interred there; whether there was any inscription on the stone, showing who he was, does not appear; it looks as if it was only a rude heap of stones; and such kind of sepulchral monuments were common in former times in other countries.