 He killed the king of Ai and hung his body on a tree until evening. When the sun went down Joshua ordered the body taken down. They threw it down in front of the entrance to the town gate and piled a heap of rocks over it which is still there today. 