And the Lord said unto Joshua, Fear not, neither be thou dismayed: take all the people of war with thee, and arise, go up to Ai: see, I have given into thy hand the king of Ai, and his people, and his city, and his land:

And thou shalt do to Ai and her king as thou didst unto Jericho and her king: only the spoil thereof, and the cattle thereof, shall ye take for a prey unto yourselves: lay thee an ambush for the city behind it.

So Joshua arose, and all the people of war, to go up against Ai: and Joshua chose out thirty thousand mighty men of valour, and sent them away by night.

And he commanded them, saying, Behold, ye shall lie in wait against the city, even behind the city: go not very far from the city, but be ye all ready:

And I, and all the people that are with me, will approach unto the city: and it shall come to pass, when they come out against us, as at the first, that we will flee before them,

(For they will come out after us) till we have drawn them from the city; for they will say, They flee before us, as at the first: therefore we will flee before them.

Then ye shall rise up from the ambush, and seize upon the city: for the Lord your God will deliver it into your hand.

And it shall be, when ye have taken the city, that ye shall set the city on fire: according to the commandment of the Lord shall ye do. See, I have commanded you.

Joshua therefore sent them forth: and they went to lie in ambush, and abode between Bethel and Ai, on the west side of Ai: but Joshua lodged that night among the people.

10 And Joshua rose up early in the morning, and numbered the people, and went up, he and the elders of Israel, before the people to Ai.

11 And all the people, even the people of war that were with him, went up, and drew nigh, and came before the city, and pitched on the north side of Ai: now there was a valley between them and Ai.

12 And he took about five thousand men, and set them to lie in ambush between Bethel and Ai, on the west side of the city.

13 And when they had set the people, even all the host that was on the north of the city, and their liers in wait on the west of the city, Joshua went that night into the midst of the valley.

14 And it came to pass, when the king of Ai saw it, that they hasted and rose up early, and the men of the city went out against Israel to battle, he and all his people, at a time appointed, before the plain; but he wist not that there were liers in ambush against him behind the city.

15 And Joshua and all Israel made as if they were beaten before them, and fled by the way of the wilderness.

16 And all the people that were in Ai were called together to pursue after them: and they pursued after Joshua, and were drawn away from the city.

17 And there was not a man left in Ai or Bethel, that went not out after Israel: and they left the city open, and pursued after Israel.

18 And the Lord said unto Joshua, Stretch out the spear that is in thy hand toward Ai; for I will give it into thine hand. And Joshua stretched out the spear that he had in his hand toward the city.

19 And the ambush arose quickly out of their place, and they ran as soon as he had stretched out his hand: and they entered into the city, and took it, and hasted and set the city on fire.

20 And when the men of Ai looked behind them, they saw, and, behold, the smoke of the city ascended up to heaven, and they had no power to flee this way or that way: and the people that fled to the wilderness turned back upon the pursuers.

21 And when Joshua and all Israel saw that the ambush had taken the city, and that the smoke of the city ascended, then they turned again, and slew the men of Ai.

22 And the other issued out of the city against them; so they were in the midst of Israel, some on this side, and some on that side: and they smote them, so that they let none of them remain or escape.

23 And the king of Ai they took alive, and brought him to Joshua.

24 And it came to pass, when Israel had made an end of slaying all the inhabitants of Ai in the field, in the wilderness wherein they chased them, and when they were all fallen on the edge of the sword, until they were consumed, that all the Israelites returned unto Ai, and smote it with the edge of the sword.

25 And so it was, that all that fell that day, both of men and women, were twelve thousand, even all the men of Ai.

26 For Joshua drew not his hand back, wherewith he stretched out the spear, until he had utterly destroyed all the inhabitants of Ai.

27 Only the cattle and the spoil of that city Israel took for a prey unto themselves, according unto the word of the Lord which he commanded Joshua.

28 And Joshua burnt Ai, and made it an heap for ever, even a desolation unto this day.

29 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.

30 Then Joshua built an altar unto the Lord God of Israel in mount Ebal,

31 As Moses the servant of the Lord commanded the children of Israel, as it is written in the book of the law of Moses, an altar of whole stones, over which no man hath lift up any iron: and they offered thereon burnt offerings unto the Lord, and sacrificed peace offerings.

32 And he wrote there upon the stones a copy of the law of Moses, which he wrote in the presence of the children of Israel.

33 And all Israel, and their elders, and officers, and their judges, stood on this side the ark and on that side before the priests the Levites, which bare the ark of the covenant of the Lord, as well the stranger, as he that was born among them; half of them over against mount Gerizim, and half of them over against mount Ebal; as Moses the servant of the Lord had commanded before, that they should bless the people of Israel.

34 And afterward he read all the words of the law, the blessings and cursings, according to all that is written in the book of the law.

35 There was not a word of all that Moses commanded, which Joshua read not before all the congregation of Israel, with the women, and the little ones, and the strangers that were conversant among them.

Ai Is Destroyed

Then the Lord said to Joshua, “Don’t be afraid. Don’t give up. Lead all your fighting men to Ai. I will help you defeat the king of Ai. I am giving you his people, his city and his land. You will do to Ai and its king what you did to Jericho and its king. Only this time you may take all the wealth. You may keep it for yourselves. Now tell some of your soldiers to set up an ambush behind the city.”

So Joshua led his whole army toward Ai. Then he chose 30,000 of his best fighting men. He sent these men out at night. Joshua gave them these orders: “Listen carefully. You must set up an ambush behind the city. Don’t go far from it. Continue to watch and be ready. I and the men who are with me will march toward the city. The men in the city will come out to fight us. Then we will turn and run away from them as we did before. They will chase us away from the city. They will think we are running away from them as we did before. When we run away, come out from your ambush and take the city. The Lord your God will give you the power to win. After you take the city, burn it. See to it! You have your orders.”

Then Joshua sent them to their place of ambush to wait. They went to a place between Bethel and Ai, to the west of Ai. But Joshua stayed the night with his people.

10 Early the next morning Joshua gathered his men together. He and the older leaders of Israel led them to Ai. 11 All of the soldiers who were with Joshua marched to Ai. They stopped in front of the city and made camp north of Ai. There was a valley between them and the city. 12 Then Joshua chose about 5,000 men. He set them in ambush in the area west of the city between Bethel and Ai. 13 So the people took their positions. The main camp was north of the city. The other men were hiding to the west. That night Joshua went down into the valley.

14 Now the king of Ai saw the army of Israel. So he and his people got up early the next morning and hurried out to fight them. They went out to a place east of the city. The king did not know soldiers were waiting in ambush behind the city. 15 Joshua and all the men of Israel let the army of Ai push them back. Then they ran east toward the desert. 16 The men in Ai were called to chase Joshua and his men. So they left the city and went after them. 17 All the men of Ai and Bethel chased the army of Israel. The city was left open. Not a man stayed to protect it.

18 Then the Lord said to Joshua, “Hold your spear toward Ai. I will give you that city.” So Joshua held his spear toward the city of Ai. 19 The men of Israel who were in ambush saw this. They quickly came out of their hiding place and hurried toward the city. They entered the city and took control of it. Then they quickly set it on fire.

20 When the men of Ai looked back, they saw smoke rising from their city. At the same time the men of Israel stopped running. They turned against the men of Ai. The men of Ai could not escape in any direction. 21 Joshua and all his men saw that the army had taken control of the city. They saw the smoke rising from it. So they stopped running and turned to fight the men of Ai. 22 The men who were in ambush also came out of the city to help with the fight. The men of Ai were caught between the armies of Israel. The Israelites fought until not one of the men of Ai was left alive. None of the enemy escaped. 23 But the king of Ai was left alive. And Joshua’s men brought him to Joshua.

A Review of the Fighting

24 During the fighting the army of Israel chased the men of Ai into the fields and desert. So the Israelites killed all of them in the fields and desert. Then they went back to Ai and killed everyone there. 25 All the people of Ai died that day, 12,000 men and women. 26 Joshua had held his spear toward Ai. It was a sign to his people to destroy the city. And Joshua held out his spear until all the people of Ai were destroyed. 27 The people of Israel kept the animals for themselves. They also kept the other things the people of Ai had owned. This is what the Lord told them to do when he gave Joshua the commands.

28 Then Joshua burned the city of Ai. It became an empty pile of ruins. And it is still like that today. 29 Joshua hung the king of Ai on a tree. He left him hanging there until evening. At sunset Joshua told his men to take the king’s body down from the tree. He told them to throw it down at the city gate. Then they covered it with rocks. That pile of rocks is still there today.

30 Then Joshua built an altar for the Lord, the God of Israel. He built it on Mount Ebal, as 31 Moses, the Lord’s servant, had commanded. Joshua built the altar as it was explained in the Book of the Teachings of Moses. The altar was made from stones that were not cut. No tool was ever used on them. The Israelites offered burnt offerings to the Lord on that altar. They also offered fellowship offerings. 32 There Joshua wrote the teachings of Moses on stones. He did this for all the people of Israel to see. 33 The elders, officers, judges and all the Israelites were there. They were standing around the Ark of the Covenant with the Lord. They stood before the priests, the Levites who had carried the Ark of the Covenant. Israelites and non-Israelites were all standing there. Half of the people stood in front of Mount Ebal. The other half stood in front of Mount Gerizim. This was the way the Lord’s servant Moses had earlier commanded the people to be blessed.

34 Then Joshua read all the words of the teachings. He read the blessings and the curses. He read it exactly as they were written in the Book of the Teachings. 35 All the Israelites were gathered together. All the women and children were there. All the non-Israelites living with the Israelites were there. Joshua read every command that Moses had given.