Then the Lord said to Joshua, ‘Do not be afraid. Continue to be brave! Take the whole army with you and go to attack Ai. This time, I will give the king and all his people to you. I will also give to you the city and its land.
You must destroy the city and its king as you destroyed Jericho and its king. But this time you may take their valuable things and their animals for yourselves. Hide some of your men behind the city, so that they are ready to attack.’
In the morning, I will march towards the city with our other soldiers. When we get near to the city, the enemy's men will come out of the city to fight against us, as they did before. Then we will turn round and we will run away.
They will chase us away from the city. They will say, “The Israelites are running away from us, as they did before.” We will continue to run away from them.
Then Joshua sent the men away. They went and they hid on the west side of Ai, between Bethel and Ai. But Joshua stayed with his other soldiers that night.
The soldiers who were with Joshua marched up to the city. They stopped in front of it, on the north side. They put up their tents there, where there was a valley between them and the city.
The whole Israelite army was ready to fight. Most of them were with their tents on the north side of the city. The other soldiers were hiding on the west side of the city. That night Joshua went down into the valley.
The king of Ai saw that Israel's army had arrived. Early the next morning, the king and his army hurried out of the city. They wanted to fight against Israel's army at the same place as before, on the hill near the Jordan Valley. But the king of Ai did not know that some Israelite soldiers were hiding behind the city.
Then the Lord said to Joshua, ‘Hold out the spear that is in your hand. Point it towards Ai. I am now giving the city to you.’ So Joshua held out his spear towards Ai.
As soon as he did this, the men who were hiding behind the city came out quickly. They ran into the city and they took it. Immediately, they used fire to burn it.
The men of Ai looked behind them and they saw smoke in the sky above the city. But they could do nothing to escape. The Israelites who had been running away from them now turned round to fight them.
Joshua and his army also saw the smoke. They knew that the other group of soldiers had taken the city. So they turned round and began to attack the men of Ai.
Now the Israelites who had gone into the city also came out to fight. So the men of Ai were in between the two groups of Israelite soldiers. The Israelites killed all the men of Ai.
The Israelites killed all the men who had lived in Ai. They killed them when they chased them towards the desert. Then the Israelite soldiers went back to Ai and they killed everyone there.
He hanged the king of Ai on a tree. He left his body there until evening. At sunset, Joshua told his men to cut the body down. They threw it on the ground outside the city's gate. They covered it with a heap of stones. Those stones are still there today.
He built it as the Lord 's servant, Moses, had told the Israelites to do. Moses had written this in the book of God's laws. The law said, ‘You must build an altar with whole stones that you have not cut. Do not use any iron tools on them.’ They made burnt offerings on the altar to worship the Lord. They also made sacrifices as friendship offerings.
All the Israelites stood on each side of the Covenant Box, with their faces towards the priests who carried it. The leaders, officers, and judges were there, as well as foreign people who lived with the Israelites. Half the people stood with their backs to Mount Gerizim. The other half stood with their backs to Mount Ebal. Moses had told them to stand like that when the Lord wanted to bless them.
Joshua read aloud every command that Moses had written. He read it to all the Israelite people. The women, children and the foreign people who lived with them also listened.