Now there was an appointed sign between the men of Israel and the men in ambush, that they should make a great flame with smoke rising up out of the city.
And when they had set the people, even all the host that was on the north of the city, and those lying in wait on the west of the city, Joshua went that night into the midst of the valley.
And when 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 that fled to the wilderness turned back upon the pursuers.