The Hebrew Bible identifies him as the builder of the First Temple in Jerusalem, beginning in the fourth year of his reign, using the vast wealth he and his father had accumulated. He dedicated the temple to Yahweh, the God of Israel. He is portrayed as great in wisdom, wealth and power beyond either of the previous kings of the country, but also as a king who sinned. His sins included idolatry, marrying foreign women and, ultimately, turning away from Yahweh, and that led to the kingdom's being torn in two during the reign of his son Rehoboam.