And he removed from there unto a mountain on the east of Bethel, and pitched his tent, having Bethel on the west, and Ai on the east: and there he built an altar unto the LORD, and called upon the name of the LORD.
And all the people, even the people of war that were with him, went up, and drew near, and came before the city, and camped on the north side of Ai: now there was a valley between them and Ai.
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.