The southern boundary of the land assigned to the descendants of Joseph started from the Jordan near Jericho, at a point east of the springs of Jericho, and went into the desert. It went from Jericho up into the hill country as far as Bethel.
On the north their border began at the Jordan and then went up the slope north of Jericho and westward through the hill country as far as the desert of Bethaven.
When the king of Ai saw Joshua's men, he acted quickly. He and all his men went out toward the Jordan Valley to fight the Israelites at the same place as before, not knowing that he was about to be attacked from the rear.
and the Benjaminites realized they were defeated. The main body of the Israelite army had retreated from the Benjaminites because they were relying on the men that they had put in hiding around Gibeah.
They retreated from the Israelites and ran toward the open country, but they could not escape. They were caught between the main army and the men who were now coming out of the city, and they were destroyed.