He took about five thousand men and set them in ambush on the west side of the city between Bethel and Ai.