Pharaoh, king of Egypt, had attacked and captured Gezer. He had set it on fire, and killed the Canaanites living in the town. He had then given it as a wedding dowry to his daughter, Solomon's wife.