The allotment for the descendants of Joseph went from the Jordan at Jericho to the waters of Jericho on the east, through the wilderness ascending from Jericho into the hill country of Bethel.
References for Joshua 16:1
From Bethel it went to Luz and proceeded to the border of the Archites by Ataroth.
It then descended westward to the border of the Japhletites as far as the border of lower Beth-horon, then to Gezer, and ended at the Mediterranean Sea.
So Ephraim and Manasseh, the sons of Joseph, received their inheritance.
This was the territory of the descendants of Ephraim by their clans: The border of their inheritance went from Ataroth-addar on the east of Upper Beth-horon.
References for Joshua 16:5
In the north the border went westward from Michmethath; it turned eastward from Taanath-shiloh and passed it east of Janoah.
From Janoah it descended to Ataroth and Naarah, and then reached Jericho and went to the Jordan.
From Tappuah the border went westward along the Brook of Kanah and ended at the Mediterranean Sea. This was the inheritance of the tribe of the descendants of Ephraim by their clans, together with
References for Joshua 16:8
the cities set apart for the descendants of Ephraim within the inheritance of the descendants of Manasseh-all these cities with their villages.
But, they did not drive out the Canaanites who lived in Gezer. So the Canaanites live in Ephraim to this day, but they are forced laborers.