Solomon made an agreement with Pharaoh, the king of Egypt, by marrying his daughter. Solomon brought her to the City of David. [11] At this time, Solomon was still building his palace and the temple of the Lord. Solomon was also building a wall around Jerusalem.