1. Yahweh said to Joshua: “Do not fear and do not be dismayed. Take with you all the men of war, arise and go up against Ai. See, I have delivered into your hands the king of Ai and his people, his city and his land.
2. You shall do to Ai and its king as you did to Jericho and its king; only you shall take its spoil and its cattle as plunder for yourselves. Set an ambush behind the city.”
3. Joshua arose with all the men of war, to go up against Ai. Joshua chose thirty thousand mighty men of valor, and sent them out by night.
4. He gave them this order: “Be on your guard: you shall lie in ambush behind the city, but without going very far from the city, and all of you, hold yourselves ready.
5. I, and all the people who are with me, will approach the city; and when they come out against us, as the first time, we will flee before them.
6. They will come out to pursue us, until we have drawn them away from the city, for they will say: They are fleeing before us, as the first time. And we will flee before them.
7. Then, rising out of the ambush, you shall seize the city; Yahweh, your God, will deliver it into your hands.
8. When you have taken the city, you shall set it on fire; you shall act according to the word of Yahweh. See: I have given you my orders.”
9. Joshua sent them out, and they went to lie in ambush between Bethel and Ai, to the west of Ai. As for Joshua, he spent that night among the people.
10. Joshua rose early in the morning and, having reviewed the people, he went up at the head of the people, he and the elders of Israel, against Ai.
11. All the men of war who were with him went up and drew near; having arrived in front of Ai, they encamped to the north of the city, with the valley between them and Ai.
12. Joshua took about five thousand men, and set them in ambush between Bethel and Ai, to the west of the city.
13. When the people had thus arranged the whole camp, which was to the north of the city, and its ambush to the west of the city, Joshua went forward that night into the middle of the valley.
14. As soon as the king of Ai saw this, the men of the city rose in haste early in the morning, and went out to meet Israel in battle; the king went forward with all his people to the appointed place, facing the plain, not knowing that there was an ambush set against him behind the city.
15. Joshua and all Israel let themselves be beaten before them, and they fled by the way of the wilderness.
16. Then all the people who were in the city gathered together to pursue them; they pursued Joshua and let themselves be drawn away from the city.
17. There was not a man left in Ai and in Bethel who did not go out to pursue Israel; leaving the city open, they pursued Israel.
18. Yahweh said to Joshua: “Stretch out toward Ai the javelin that is in your hand, for I am about to deliver it into your power.” And Joshua stretched out toward the city the javelin that was in his hand.
19. As soon as he had stretched out his hand, the men in ambush rose in haste from the place where they were and, running, they entered the city and occupied it; and they hastened to set the city on fire.
20. The men of Ai, looking behind them, saw the smoke of the city rising toward the sky, and they could no longer escape in any direction, for the people who were fleeing toward the wilderness turned back against those who were pursuing them.
21. And Joshua and all Israel, seeing the city taken by the men of the ambush, and the smoke of the city rising, turned back and struck down the men of Ai.
22. The others came out of the city to meet them, and the men of Ai found themselves surrounded by the Israelites, some on one side, others on the other side. And the Israelites struck them down, leaving them neither survivor nor fugitive;
23. they took the king of Ai alive and brought him to Joshua.
24. When Israel had finished killing all the inhabitants of Ai in the open country, in the wilderness, where they had pursued it, and all of them to the last had been put to the sword, all Israel returned to the city and put it to the sword.
25. The total number of those who perished on that day was twelve thousand, both men and women, all the people of Ai.
26. Joshua did not draw back his hand which he held stretched out with the javelin, until he had treated all the inhabitants of Ai as devoted under the ban.
27. The Israelites took only the cattle and the spoil of that city for themselves, according to the order of Yahweh which he had given to Joshua.
28. Joshua burned Ai, and made it forever a heap of ruins, which remains to this day.
29. He had the king of Ai hanged on a tree and left him there until evening. At sunset, Joshua gave the order to take his body down from the tree; it was thrown down at the entrance of the city gate, and a great heap of stones was raised over him, which remains to this day.
30. Then Joshua built an altar to Yahweh, God of Israel, on Mount Ebal,
31. according to the order that Moses, servant of Yahweh, had given to the children of Israel, as it is written in the book of the law of Moses, an altar of uncut stones, on which no iron had been wielded. They offered burnt offerings on it to Yahweh, and made peace offerings.
32. There Joshua wrote on the stones a copy of the law that Moses had written in the presence of the children of Israel.
33. All Israel, its elders, its officers and its judges, stood on both sides of the ark, before the Levitical priests, who carried the ark of the covenant of Yahweh, the strangers as well as the children of Israel, half of them on the side of Mount Gerizim, half on the side of Mount Ebal, according to the order that Moses, servant of Yahweh, had given beforehand to bless the people of Israel.
34. Then Joshua read all the words of the law, the blessing and the curse, according to all that is written in the book of the law.
35. There was not a word of all that Moses had commanded which Joshua did not read in the presence of the whole assembly of Israel, of the women and the children, and of the strangers who lived among them.