Chapter 16 from Joshua | Web
The lot came out for the children of Joseph from the Jordan at Jericho, at the waters of Jericho on the east, even the wilderness, going up from Jericho through the hill-country to Bethel;
and it went out from Bethel to Luz, and passed along to the border of the Archites to Ataroth;
and it went down westward to the border of the Japhletites, to the border of Beth Horon the lower, even to Gezer; and the goings out of it were at the sea.
The children of Joseph, Manasseh and Ephraim, took their inheritance.
The border of the children of Ephraim according to their families was [thus]: the border of their inheritance eastward was Ataroth Addar, to Beth Horon the upper;
and the border went out westward at Michmethath on the north; and the border turned about eastward to Taanath Shiloh, and passed along it on the east of Janoah;
and it went down from Janoah to Ataroth, and to Naarah, and reached to Jericho, and went out at the Jordan.
From Tappuah the border went along westward to the brook of Kanah; and the goings out of it were at the sea. This is the inheritance of the tribe of the children of Ephraim according to their families;
together with the cities which were set apart for the children of Ephraim in the midst of the inheritance of the children of Manasseh, all the cities with their villages.
They didn't drive out the Canaanites who lived in Gezer: but the Canaanites dwell in the midst of Ephraim to this day, and are become servants to do forced labor.