All the fighting men who were with Joshua marched in front of the town and camped on the north side of Ai, with a valley between them and the town.
Early the next morning Joshua roused his men and started toward Ai, accompanied by the elders of Israel.
That night Joshua sent about 5,000 men to lie in ambush between Bethel and Ai, on the west side of the town.