10Joshua arose up early in the morning, and mustered the people, and went up, he and the elders of Israel, before the people to Ai.
11All the people, [even] the [men of] war who were with him, went up, and drew near, and came before the city, and encamped on the north side of Ai: now there was a valley between him and Ai.
12He took about five thousand men, and set them in ambush between Bethel and Ai, on the west side of the city.
13So they set the people, even all the host who was on the north of the city, and their liers-in-wait who were on the west of the city; and Joshua went that night into the midst of the valley.
14It happened, when the king of Ai saw it, that they hurried and rose up early, and the men of the city went out against Israel to battle, he and all his people, at the time appointed, before the Arabah; but he didn't know that there was an ambush against him behind the city.
15Joshua and all Israel made as if they were beaten before them, and fled by the way of the wilderness.
16All the people who were in the city were called together to pursue after them: and they pursued after Joshua, and were drawn away from the city.
17There was not a man left in Ai or Beth El, who didn't go out after Israel: and they left the city open, and pursued after Israel.
18Yahweh said to Joshua, Stretch out the javelin that is in your hand toward Ai; for I will give it into your hand. Joshua stretched out the javelin that was in his hand toward the city.
19The ambush arose quickly out of their place, and they ran as soon as he had stretched out his hand, and entered into the city, and took it; and they hurried and set the city on fire.
20When the men of Ai looked behind them, they saw, and, behold, the smoke of the city ascended up to heaven, and they had no power to flee this way or that way: and the people who fled to the wilderness turned back on the pursuers.
21When Joshua and all Israel saw that the ambush had taken the city, and that the smoke of the city ascended, then they turned again, and killed the men of Ai.
22The others came forth out of the city against them; so they were in the midst of Israel, some on this side, and some on that side: and they struck them, so that they let none of them remain or escape.
23The king of Ai they took alive, and brought him to Joshua.