Don't be afraid, and don't be discouraged by what happened at the town of Ai. Take the army and attack again. But first, make part of the army set up an ambush on the other side of the town. I will help you defeat the king of Ai and his army, and you will capture the town and the land around it. Destroy Ai and kill its king as you did at Jericho. But you may keep the livestock and everything else you want.

3-4Joshua quickly got the army ready to attack Ai. He chose thirty thousand of his best soldiers and gave them these orders:

Tonight, while it is dark, march to Ai and take up a position behind the town. Get as close to the town as you can without being seen, but be ready to attack.

5-6The rest of the army will come with me and attack near the gate. When the people of Ai come out to fight, we'll run away and let them chase us. They will think we are running from them just like the first time. But when we've let them chase us far enough away, 7you come out of hiding. The LORD our God will help you capture the town. 8Then set it on fire, as the LORD has told us to do. Those are your orders, 9now go!

The thirty thousand soldiers went to a place on the west side of Ai, between Ai and Bethel, where they could hide and wait to attack.

That night, Joshua stayed in camp with the rest of the army. 10Early the next morning he got his troops ready to move out, and he and the other leaders of Israel led them to Ai. 11They set up camp in full view of the town, across the valley to the north. 12Joshua had already sent five thousand soldiers to the west side of the town to hide and wait to attack. 13Now all his troops were in place. Part of the army was in the camp to the north of Ai, and the others were hiding to the west, ready to make a surprise attack. That night, Joshua went into the valley.#8.13 valley: This may refer either to the Jordan valley or to the valley between the Israelite camp and Ai.

14-15The king of Ai saw Joshua's army, so the king and his troops hurried out early the next morning to fight them. Joshua and his army pretended to be beaten, and they let the men of Ai chase them towards the desert. The king and his army were facing the Jordan valley as Joshua had planned.

The king did not realize that some Israelite soldiers were hiding behind the town. 16-17So he called out every man in Ai to go after Joshua's troops. They all rushed out to chase the Israelite army, and they left the town gates wide open. Not one man was left in Ai or in Bethel.#8.16,17 Ai or in Bethel: Hebrew; one ancient translation “Ai”.

Joshua let the men of Ai chase him and his army further and further away from Ai. 18Finally, the LORD told Joshua, “Point your sword#8.18 sword: Or “spear”. at the town of Ai, because now I am going to help you defeat it!”

As soon as Joshua pointed his sword at the town, 19the soldiers who had been hiding got up and ran into the town. They captured it and set it on fire.

20-21When Joshua and his troops saw smoke rising from the town, they knew that the other part of their army had captured it. So they turned and attacked.

The men of Ai looked back and saw smoke rising from their town. But they could not escape, because the soldiers they had been chasing had suddenly turned and started fighting. 22-24Meanwhile, the other Israelite soldiers had come from the town and attacked the men of Ai from the rear. The Israelites captured the king of Ai and brought him to Joshua. They also chased the rest of the men of Ai into the desert and killed them.#8.22-24 Joshua. They also chased…them: Or “Joshua. The men of Ai had chased the Israelites into the desert, but the Israelites killed them there.”

The Israelite army went back to Ai and killed everyone there. 25-26Joshua kept his sword pointed at the town of Ai until every last one of Ai's twelve thousand people was dead. 27But the Israelites took the animals and the other possessions of the people of Ai, because this was what the LORD had told Joshua to do.

28-29Joshua made sure every building in Ai was burnt to the ground. He told his men to kill the king of Ai and hang his body on a tree. Then at sunset he told the Israelites to take down the body,#8.28,29 take down the body: See Deuteronomy 21.22,23. throw it in the gateway of the town, and cover it with a big pile of rocks. Those rocks are still there, and the town itself has never been rebuilt.

Joshua reads the blessings and curses

(Deuteronomy 27.1-26)

30-32One day, Joshua led the people of Israel to Mount Ebal, where he told some of his men, “Build an altar for offering sacrifices to the LORD. And use stones that have never been cut with iron tools,#8.30-32 use stones…iron tools: See Exodus 20.25. because that is what Moses taught in The Book of the Law.”#8.30-32 taught…Law: Or “commanded…Teachings”.#Dt 27.2-8.#Ex 20.25.

Joshua offered sacrifices to please the LORD#8.30-32 sacrifices to please the LORD: These sacrifices have been traditionally called “whole burnt offerings” because the whole animal was burnt on the altar. A main purpose of such sacrifices was to please the LORD with the smell of the sacrifice, and so in the CEV they are often called “sacrifices to please the LORD”. and to ask his blessing.#8.30-32 to ask his blessing: These sacrifices have traditionally been called “peace offerings”, or “offerings of well-being”. A main purpose was to ask for the LORD's blessing, and so in the CEV they are often called “sacrifices to ask the LORD's blessing”. Then with the Israelites still watching, he copied parts of The Book of the Law#8.30-32 Law: Or “Teachings”. of Moses on to stones.

33-35Moses had said that everyone in Israel was to go to the valley between Mount Ebal and Mount Gerizim, where they were to be blessed. So everyone went there, including the foreigners, the leaders, officials, and judges. Half of the people stood on one side of the valley, and half on the other side, with the priests from the Levi tribe standing in the middle with the sacred chest. Then in a loud voice, Joshua read the blessings and curses from The Book of the Law#8.33-35 Law: Or “Teachings”. of Moses.#8.33-35 the blessings…Moses: Or “all of The Book of the Law of Moses, including the blessings and the curses”.#Dt 11.29; 27.11-14.