1The LORD told Joshua, "Don't be afraid and don't panic! Take the whole army with you and march against Ai! See, I am handing over to you the king of Ai, along with his people, city, and land.
14When the king of Ai saw Israel, he and his whole army quickly got up the next day and went out to fight Israel at the meeting place near the Arabah. But he did not realize men were hiding behind the city.
18The LORD told Joshua, "Hold out toward Ai the curved sword in your hand, for I am handing the city over to you." So Joshua held out toward Ai the curved sword in his hand.
19When he held out his hand, the men waiting in ambush rose up quickly from their place and attacked. They entered the city, captured it, and immediately set it on fire.
20When the men of Ai turned around, they saw the smoke from the city ascending into the sky and were so shocked they were unable to flee in any direction. In the meantime the men who were retreating to the desert turned against their pursuers.
21When Joshua and all Israel saw that the men in ambush had captured the city and that the city was going up in smoke, they turned around and struck down the men of Ai.
22At the same time the men who had taken the city came out to fight, and the men of Ai were trapped in the middle. The Israelites struck them down, leaving no survivors or refugees.
24When Israel had finished killing all the men of Ai who had chased them toward the desert (they all fell by the sword), all Israel returned to Ai and put the sword to it.
29He hung the king of Ai on a tree, leaving him exposed until evening. At sunset Joshua ordered that his corpse be taken down from the tree. They threw it down at the entrance of the city gate and erected over it a large pile of stones (it remains to this very day).
31just as Moses the LORD's servant had commanded the Israelites. As described in the law scroll of Moses, it was made with uncut stones untouched by an iron tool. They offered burnt sacrifices on it and sacrificed tokens of peace.
33All the people, rulers, leaders, and judges were standing on either side of the ark, in front of the Levitical priests who carried the ark of the covenant of the LORD. Both resident foreigners and native Israelites were there. Half the people stood in front of Mount Gerizim and the other half in front of Mount Ebal, as Moses the LORD's servant had previously instructed to them to do for the formal blessing ceremony.
35Joshua read aloud every commandment Moses had given before the whole assembly of Israel, including the women, children, and resident foreigners who lived among them.