Verse study
Joshua 8:29
29 He hanged the king of Ai on a tree until the evening. At sundown, Joshua commanded, and they took his body down from the tree and threw it at the entrance of the gate of the city, and raised a great heap of stones on it that remains to this day.
Meaning & historical commentary
Ai's king is executed in the open city gate, where the whole community could see, and his body is buried under a cairn of stones that stands as a public monument. Hanging here means exposure on a tree, a visible sign of defeat and shame, and the verse gives the timing carefully: the body hangs until evening and is taken down at sundown. Deuteronomy 21:22-23 speaks of a hanged body as accursed and insists it not remain overnight on the tree, so the author signals that Israel is following that law even in the act of conquest, while the stone heap at the gate becomes a lasting marker of the city's fall.