14 The king of Ai saw what the army of Israel was doing. So he and all of his men hurried out of the city early in the morning. They marched out to meet Israel in battle. They went to a place that looked out over the Arabah Valley. The king didn't know that some of Israel's fighting men were hiding behind the city.
15 Joshua and all of his men let the men of Ai drive them back. The men of Israel ran away toward the desert.
16 All of the men of Ai were called out to chase them. They chased Joshua. So they were drawn away from the city.
17 Not even one man remained in Ai or Bethel. All of them went out to chase Israel. When they did, they left the city wide open.
18 Then the Lord spoke to Joshua. He said, "Point the javelin that is in your hand at Ai. I will hand the city over to you." So Joshua pointed his javelin at Ai.
19 As soon as he did, the men who were hiding behind the city got up quickly. They came out of their hiding places and rushed forward. They entered the city and captured it. They quickly set it on fire.
20 The men of Ai looked back. They saw smoke rising up from the city into the sky. But they couldn't escape in any direction. The men of Israel had been running away toward the desert. But now they turned around to face those who were chasing them.