Solomon made an alliance with Pharaoh king of Egypt by marrying Pharaoh's daughter. Solomon brought her to the city of David until he finished building his palace, the LORD's temple, and the wall surrounding Jerusalem.