14 As soon as the king of Ai saw this, he and all his troops, the men of the city, hurried out early in the morning to meet Israel in battle. They moved out to the battleground on the slopes down toward the Jordan. He didn’t know that there was an ambush set against him behind the city.
15 Then Joshua and all Israel let themselves be beaten before them. They fled in the direction of the desert.
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.