Pharaoh king of Egypt had come up and captured Gezer, torched it, and killed all the Canaanites who lived there. He gave it as a wedding present to his daughter, Solomon’s wife. So Solomon rebuilt Gezer.