All of the soldiers who were with Joshua marched up to Ai and stopped in front of the city and made camp north of it. There was a valley between them and the city.