Pharaoh, the king of Egypt, had attacked and captured Gezer, burned it down, killed the Canaanites who lived in the city, and then gave it as a dowry for his daughter, Solomon's wife. 