Ephraim and Manasseh are the two tribes descended from Joseph, and the following is a description of the land they received. The southern border of their land started at the Jordan River east of the spring at Jericho. From there it went west through the desert up to the hill country around Bethel. From Bethel it went to Luz and then to the border of the Archites in Ataroth. It continued west down to the land that belonged to the Japhlet clan, then went on to Lower Beth-Horon, Gezer, and the Mediterranean Sea.
The king of Ai saw Joshua's army, so the king and his troops hurried out early the next morning to fight them. Joshua and his army pretended to be beaten, and they let the men of Ai chase them toward the desert. The king and his army were facing the Jordan valley as Joshua had planned. The king did not realize that some Israelite soldiers were hiding behind the town.