The allotment to the descendants of Joseph extended from the Jordan River near Jericho, east of the waters of Jericho, through the wilderness and into the hill country of Bethel.
From Bethel (that is, Luz) it ran over to Ataroth in the territory of the Arkites.
References for Joshua 16:2
Then it descended westward to the territory of the Japhletites as far as Lower Beth-horon, then to Gezer and on over to the Mediterranean Sea.
References for Joshua 16:3
The families of Joseph's sons, Manasseh and Ephraim, received their inheritance.
The following territory was given to the families of the tribe of Ephraim as their inheritance. The eastern boundary of their inheritance began at Ataroth-addar. From there it ran to Upper Beth-horon,
then on to the Mediterranean Sea. The northern boundary began at the Mediterranean, ran east past Micmethath, then curved eastward past Taanath-shiloh to the east of Janoah.
From Janoah it turned southward to Ataroth and Naarah, touched Jericho, and ended at the Jordan River.
From Tappuah the border extended westward, following the Kanah Ravine to the Mediterranean Sea. This is the inheritance given to the families of the tribe of Ephraim.
Ephraim was also given some towns with surrounding villages in the territory of the half-tribe of Manasseh.
They did not drive the Canaanites out of Gezer, however, so the people of Gezer live as slaves among the people of Ephraim to this day.