(The king of Egypt captured Gezer, burned it down, and killed the Canaanites living there. Then he gave it to his daughter, Solomon’s wife, as a wedding present.)
Solomon became the son-in-law of Pharaoh (the king of Egypt). After marrying Pharaoh’s daughter, Solomon brought her to the City of David until he finished building his own house, the Lord’s house, and the wall around Jerusalem.
His own private quarters were in a different location than the Hall of Justice, but they were similar in design. Solomon also built private quarters like this for his wife, Pharaoh’s daughter.
However, they did not force out the Canaanites who lived in Gezer. So the Canaanites still live in Ephraim today, but they are required to do forced labor.