There were Canaanites living in Gezer. And the Ephraimites did not make all the Canaanites leave their land. So they continued to live in Gezer with the Ephraimites.
But the Ephraimites were not able to force the Canaanites to leave the town of Gezer. So the Canaanites still live among the Ephraimites today, although they did become slaves of the Ephraimites.
Then the border went west to the border of the Japhletites. The border continued to Lower Beth Horon. Then the border went to Gezer and continued to the Mediterranean Sea.
Later, the Israelites went to war with the Philistines at the town of Gezer. At that time Sibbecai from Hushah killed Sippai, who was one of the sons of the giants. So those Philistines became like slaves to the Israelites.
The Lord allowed them to defeat the city of Lachish. They defeated it on the second day. The Israelites killed everyone in the city, just as they had done in Libnah.