As soon as Joshua gave this signal, all the men in ambush jumped up from their position and poured into the town. They quickly captured it and set it on fire.
You will destroy them as you destroyed Jericho and its king. But this time you may keep the plunder and the livestock for yourselves. Set an ambush behind the town.”
When the men of Ai looked behind them, smoke from the town was filling the sky, and they had nowhere to go. For the Israelites who had fled in the direction of the wilderness now turned on their pursuers.
When the main group of Israelite warriors reached Baal-tamar, they turned and took up their positions. Meanwhile, the Israelites hiding in ambush to the west of Gibeah jumped up to fight.