(In the past the king of Egypt had attacked and captured Gezer. After burning it, he killed the Canaanites who lived there. Then he gave it as a wedding present to his daughter, who married Solomon.
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.
So the Israelites chose these cities to be cities of safety: Kedesh in Galilee in the mountains of Naphtali; Shechem in the mountains of Ephraim; Kiriath Arba (also called Hebron) in the mountains of Judah;