God encourages Joshua
1The LORD told Joshua, “Don’t be afraid or discouraged. Attack Ai with all your warriors. Listen to me, I’m going to put the city in your hands. I’ll give you the king, his people, his city, and all the land he owns outside the city. 2You’ll do to Ai and their king what you did to Jericho and their king. But this time I’m going to let you take from the city whatever you want. You can have their cattle, too. Set up an ambush behind the city.Joshua plots an ambush
3Joshua and the army got ready to march against Ai. To set the trap for an ambush, Joshua picked 30,000 of his strongest fighting men. He sent them to Ai under cover of night. [1] 4Joshua gave them these orders: “Eyes on me. This is important. You’re going to ambush the enemy. Hide behind the city, not too far away. Stay on high alert. All of you. 5I’ll lead the attack on the city. When their men come out, we’ll turn and run like before.6They’ll chase us and say, ‘Look, they’re doing it again. Running away.’ We’ll draw them away from the city. 7When that happens, attack the city. It’s yours. The LORD your God will see to it. 8When you take the city, set it on fire. Follow the LORD’s orders. [2] And carry out my orders.” 9Joshua sent the ambush troops on their way. They took a position west of Ai, in the direction of Bethel. Joshua stayed in camp with the rest of Israel.
Israel camps outside Ai
10Early the next morning, Joshua led his main strike force on a march up to Ai. Israel’s leaders came, too. 11All the warriors with him set up camp north of Ai. There was a small valley between them and the city. 12Joshua ordered 5,000 men to hide in ambush west of Ai, near Bethel. [3] 13So, Israel’s main attack group camped north of Ai. Others hid in ambush west of the city. After dark, Joshua walked into the valley near Ai.Ai attacks
14When the king saw Israel’s army, he mustered his men that night and had them ready for battle early the next morning. He led his men out the front gate, facing east. He didn’t know a strike force lay in ambush behind him and behind the city, to the west.15Joshua and the men with him in the main attack force let Ai drive them back into a retreat. 16When that happen, Ai signaled all defenders in the city to join the chase for the runaway Israelites. That’s how Joshua lured them away from the city. 17There wasn’t one defender left in Ai or the neighboring town of Bethel. They had all joined the hunt for fleeing Israelites.
Israel springs its trap
18The LORD told Joshua, “Raise your spear and point it to Ai. I’m going to help you take the city now.” Joshua did that. 19Joshua raised his spear, triggering the ambush. His men charged out of their hiding places behind Ai. They rushed into the city, took control of it, and quickly set it on fire.20Ai’s fighting men saw the fire behind them, with the smoke billowing high in the sky. But they couldn’t go anywhere. [4] 21When Joshua and his men saw the smoke, they realized the ambush had worked and the city had fallen. So, they turned on the fighters of Ai and started killing them. 22The Israelite strike force that captured and burned the city now rushed toward Ai’s army, trapping their men between two Israelite strike forces. Israelites killed them all. Not one of Ai’s defenders escaped. No one survived.
The king is dead
23Israelites captured the king and kept him alive long enough to take him to Joshua. 24The Israelites killed every fighter of Ai who had tried to run them down, along with everyone who tried to escape. Then they returned to Ai and finished killing all the people there. 25Israelites killed 12,000 people of Ai, the entire population.26When Joshua raised his spear, triggering the ambush, he didn’t lower it until everyone in Ai was dead. 27The LORD, earlier, told Joshua that his men could take cattle and anything else they found in the city. So, they did. 28Joshua left Ai in ruins. It’s still nothing but a pile of rocks and dirt. 29Joshua ordered his men to kill the king and hang his body from a tree until evening. That evening they tossed his body by the entrance gate into the city he had ruled. They piled stones over him—a huge pile that’s still there today.
Meeting at the twin mountains
30Joshua later built a sacrificial altar to the LORD, Israel’s God. He built it on Mount Ebal. [5] 31Moses had told him to do it. So, Joshua followed the instructions as they’re written in the Law of Moses. [6] Moses told him to use native stones that had never been chiseled with tools. On the altar Joshua built, Israelites sacrificed burnt offerings [7] along with peace offerings. [8] 32As Moses had instructed, Joshua wrote onto the stones a copy of the Law of Moses. [9] All the people watched.33Everyone assembled in the valley between Mount Gerizim and Mount Ebal. Israel’s leaders—elders, officials, and judges—stood on both sides of the Box of the Law, [10] with the priests who carried it. Everyone was there, whether Israelite or others living among them. Half stood by Mount Gerizim. The other half stood by Mount Ebal. Moses had told them to do this. [11] Moses said they should start by reading the blessings that God promised them for following the law. [12] 34After that they read the painful consequences of breaking the law. These are preserved in the Law Book. [13] 35Joshua read out loud every law Moses ever taught. All the people were there, including the women, children, and outsiders living among the Israelites.




