Joshua 8:14arav
And it came to pass, when the king of Ai saw it, that they hasted and rose up early, and the men of the city went out against Israel to battle, he and all his people, at a time appointed, before the plain; but he wist not that there were liers in ambush against him behind the city.
Ai's king attacks, unaware of the hidden men behind the city.
Joshua 8:19arav
And the ambush arose quickly out of their place, and they ran as soon as he had stretched out his hand: and they entered into the city, and took it, and hasted and set the city on fire.
The ambush rises quickly, takes Ai, and sets it on fire.