Joshua 8:29 Meaning: Why the King of Ai Was Hanged
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.
And the king of Ai he hanged on a tree until eventide: and as soon as the sun was down, Joshua commanded that they should take his carcase down from the tree, and cast it at the entering of the gate of the city, and raise thereon a great heap of stones, that remaineth unto this day.
And the king of Ai he hanged on a tree until the eventide: 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, unto this day.
and the king of Ai he hath hanged on the tree till even-time, and at the going in of the sun hath Joshua commanded, and they take down his carcase from the tree, and cast it unto the opening of the gate of the city, and raise over it a great heap of stones till this day.
And 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 carcase down from the tree, and threw it down at the entrance of the gate of the city, and raised upon it a great heap of stones, [which remains] to this day.
Meaning in one sentence
Why did Joshua hang the king of Ai on a tree? This verse shows God's judgment on sin and the careful application of Deuteronomy's law.
Context
After the defeat at Ai caused by Achan's sin, God gives Israel victory at the second battle. The city is burned and its people killed. The king is captured alive and brought to Joshua. This verse describes his execution: he is hanged on a tree until evening. Then, exactly as the law of Deuteronomy 21:22-23 commands, his body is taken down at sunset and buried at the entrance of the city gate under a great heap of stones. The heap remains as a lasting monument of judgment, much like the heap raised over Achan. Immediately afterward, Joshua builds an altar on Mount Ebal and reads the law to the people, connecting judgment with worship.
Key Words
Two Hebrew phrases carry the weight of this scene. The king is hanged on a tree, the verb talah (H8518) means to hang up, and ets (H6086) is the tree or gallows. Together they echo Deuteronomy 21:23: anyone hanged on a tree is cursed by God. The public hanging declares that the king stands under God's curse.
Then his body is buried under a great heap of stones. The word gal (H1530) describes a pile of stones used as a monument, but not an honored tomb. It is the same word used for the heap over Achan (Joshua 7:26). It marks the place as a sign of infamy, a visible warning that sin brings lasting disgrace.
The verb yarad (H3381), they took down, shows careful obedience. The body did not stay overnight, as the law required. Even in judgment, God gave boundaries for dignity.
How Christians Read This Verse
Protestant commentators like Calvin and Wesley emphasize that the king's public execution was a display of God's justice, especially against leaders who led people into sin. The hanging on a tree marked him as cursed, and the heap of stones served as a permanent warning. Anglican scholars (Cambridge Bible) note the legal precision: the body was taken down before sunset in obedience to Deuteronomy 21:23. The Douay-Rheims translation uses 'gibbet,' a word suggesting the shape of a cross, which some early readers saw as a foreshadowing of Christ's crucifixion. Across traditions, Christians agree that this verse demonstrates both the severity of divine judgment and the importance of following God's law even in its smallest details.
A common misunderstanding
Some readers assume the king of Ai was hanged alive to increase his suffering. In fact, the Hebrew text and parallel passages like Joshua 10:26 suggest he was first put to death, then his body was hung on the tree as a public display of God's curse. The point was not cruelty but justice, and it was done in strict accordance with Deuteronomy's command that the body must not remain overnight.
Living This Out
The king of Ai's death is sobering. It shows that sin brings real consequences, and that God does not ignore rebellion. But notice the timing: the body is taken down before nightfall. The curse does not last forever. When you face the weight of your own failings this week, let this verse remind you that God's judgment has limits. For many Christians, this points to Jesus who was hanged on a tree and bore the curse of sin completely (Galatians 3:13). You are not left under a heap of stones. Come to the cross, where the curse was removed once and for all.
Main takeaway: The king of Ai's body, hung on a tree and buried under stones, shows that God's judgment on sin is real, yet His law provides for the curse to be removed before the day ends.
For Families
For ages 5, 8
The king of Ai was an enemy of God's people. After the battle, Joshua hung his body on a tree and buried him under a big pile of rocks. This shows that God wants us to obey Him, and that sin has consequences.
For ages 9, 12
The public execution of the king of Ai was a serious reminder that God judges sin. But notice the Israelites followed God's law carefully: they took the body down at sunset. Even in punishment, God gave limits. This also makes us think about Jesus, who was hung on a tree and took the curse of sin for us.
Questions People Ask
Why did they hang the king of Ai on a tree?
The hanging was a public display of God's curse. According to Deuteronomy 21:22-23, a person who committed a capital crime could be hung on a tree after execution to show that he was cursed by God. This served as a warning to others and demonstrated the seriousness of sin.
Was the king of Ai hanged alive?
The text does not say explicitly, but parallel accounts in Joshua 10:26 suggest the king was first put to death, then his body was hung on the tree. Hanging alive was not the custom; the body was displayed after death as a sign of cursing.
Why did they take the body down at sunset?
God's law in Deuteronomy 21:23 required that a body hung on a tree must not remain overnight, so that the land would not be defiled. This shows that even in executing judgment, God commanded mercy and respect for the dead.
What does the heap of stones mean?
The heap of stones over the king's body served as a monument of infamy, a lasting symbol of his disgrace and God's judgment. It was similar to the heap raised over Achan in Joshua 7:26 and later over Absalom in 2 Samuel 18:17. It marked the place as a reminder of the consequences of sin.
How does this verse connect to Jesus' crucifixion?
The Apostle Paul in Galatians 3:13 quotes Deuteronomy 21:23 to say that Christ became a curse for us by being hanged on a tree. Many Christians see the king of Ai's death as a foreshadowing of Jesus bearing the curse of sin on the cross, so that we could be freed from judgment.
For pastors & researchers
Hebrew interlinear, 8 commentaries & word study