The Bible relates that David was prevented from building the Temple because his hands were stained with blood. It was his son Solomon who erected the Temple, north of the royal quarter, on the site of the threshing floor purchased by David from Ornan the Jebusite, which is identified as Mount Moriah (Chronicles II, 3:1).
Once the Temple was dedicated, the city became the spiritual center which united the entire nation and to which the masses came on pilgrimages. This was ''the place that He would choose,'' where people came to pay homage to the Lord of Hosts.
After the monarchy was divided following Solomon's death (ca. 930 BCE), Jerusalem remained the capital of the Kingdom of Judah, whereas the capital of the Kingdom of Israel changed a number of times, as one dynasty supplanted another. The kings of Israel sought a surrogate Temple for their subjects. At times peace reigned between the kingdoms of Judah and Israel, while during other periods they were hostile to each other.