King Solomon was the son of King David and Bathsheba. Solomon was not the oldest son of David, but David promised Bathsheba that Solomon would be the next king. When David’s elder son Adonijah declared himself king, David ordered his servants to bring Solomon to the Gihon spring. There King David, while he was still alive, had the priest anointed Solomon the next king. Solomon inherited a considerable empire from his father, and he was quickly recognized for his wisdom, wealth, and power.

Once Solomon’s empire was tranquil, he began to build the Holy Temple. He received wood from King Hiram of Tyre and imposed a compulsory labor service on both the Israelites and the foreign nations that were under his control. His workers built the structure of the Temple, its decorations and its vessels. The Temple took seven years to complete. The Hebrew Bible credits him as the builder of the First Temple in Jerusalem.

More Info: en.wikipedia.org