Later, at Gezer, war broke out with the Philistines. Sibbecai the Hushathite killed Sippai, who was one of the descendants of the Rephaites. So those Philistines were defeated.
The Ephraimites could not force the Canaanites to leave Gezer, so the Canaanites still live among the Ephraimites today, but they became slaves of the Ephraimites.
From there it went west to the border of the Japhletites and continued to the area of the Lower Beth Horon. Then it went to Gezer and ended at the sea.
The people of Ephraim did not force out all of the Canaanites living in Gezer. So the Canaanites continued to live in Gezer with the people of Ephraim.