25 So the entire population of Ai, including men and women, was wiped out that day—12,000 in all.
26 For Joshua kept holding out his spear until everyone who had lived in Ai was completely destroyed.
27 Only the livestock and the treasures of the town were not destroyed, for the Israelites kept these as plunder for themselves, as the lord had commanded Joshua.
28 So Joshua burned the town of Ai, and it became a permanent mound of ruins, desolate to this very day.
29 Joshua impaled the king of Ai on a sharpened pole and left him there until evening. At sunset the Israelites took down the body, as Joshua commanded, and threw it in front of the town gate. They piled a great heap of stones over him that can still be seen today.
30 Then Joshua built an altar to the lord, the God of Israel, on Mount Ebal.
31 He followed the commands that Moses the lord’s servant had written in the Book of Instruction: “Make me an altar from stones that are uncut and have not been shaped with iron tools.” Then on the altar they presented burnt offerings and peace offerings to the lord.