Verses 1-5: The Defeat at Ai. The chapter opens with Israel's unexpected defeat caused by a hidden sin, setting the stage for the investigation. The men of Ai defeat about thirty-six Israelites, causing fear and demoralization.
Verses 6-9: Joshua’s Prayer and Lament. Joshua responds with deep mourning and intercession before the LORD, questioning God's purpose in bringing Israel into the land given the defeat.
Verses 10-15: Divine Revelation and Instructions. God reveals the cause of defeat—Israel's sin in taking the accursed things—and commands purification through identifying the guilty party.
Verses 16-21: Identification and Confession of Achan. The process of casting lots narrows down the culprit to Achan, who confesses his sin of coveting and hiding forbidden spoils.
Verses 22-26: Judgment and Purging of Sin. The stolen items and Achan’s family and possessions are brought out, and Achan is executed by stoning and burning. The chapter closes with the LORD’s anger turning away and the naming of the Valley of Achor as a place of trouble turned to hope.