The Ephraim tribe did not get rid of the Canaanites who lived in Gezer, so the Canaanites lived there with Israelites all around them.