16 All the men in the city had been called together to go after them, and as they pursued Joshua, they kept getting farther away from the city.
17 Every man in Ai went after the Israelites, and the city was left wide open, with no one to defend it.
18 Then the Lord said to Joshua, “Point your spear at Ai; I am giving it to you.” Joshua did as he was told,
19 and as soon as he lifted his hand, the men who had been hiding got up quickly, ran into the city and captured it. They immediately set the city on fire.
20 When the men of Ai looked back, they saw the smoke rising to the sky. There was no way for them to escape, because the Israelites who had run toward the barren country now turned around to attack them.
21 When Joshua and his men saw that the others had taken the city and that it was on fire, they turned around and began killing the men of Ai.
22 The Israelites in the city now came down to join the battle. So the men of Ai found themselves completely surrounded by Israelites, and they were all killed. No one got away, and no one lived through it