16 Next, all the troops who were still in the city were called out to chase them. They chased after Joshua and so let themselves be drawn away from the city.
17 No one who hadn’t gone out after Israel was left in either Ai or Bethel. They left the city wide open and chased after Israel.
18 The Lord said to Joshua, "Point the dagger in your hand toward Ai, because I will give it into your power." So Joshua pointed the dagger in his hand toward the city.
19 The ambush quickly rose from its place. As soon as he reached out his hand, it charged. They entered the city and captured it. They set the city on fire at once.
20 Then the men of Ai turned around. They caught sight of the smoke of the city rising toward the sky. They had no chance to flee one way or the other. The troops who were fleeing toward the desert turned against the pursuit.
21 Joshua and all Israel saw that the ambush had captured the city and that the smoke of the city was rising. So they turned and struck down the men of Ai.
22 When other Israelites came out of the city to confront them, the men of Ai were caught in the middle. Some Israelites were on one side of them and some on the other. The Israelites struck them down until there was no one left to escape.