It is believed that the city of Jerusalem dates back to 2300BC when it was inhabited (under another name) by the Amorites and then the Hittites. It was then abandoned but is later referred to as Salem in the time of the King and Priest Melchizadek in Gen. 26, a contemporary of the patriarch Abraham.
Sometime after Melchizadek’s death Salem was conquered by the Jebusites who renamed the fortification Jebus. It was during the time of Joshua’s conquest of the land under the control of King Adoni-Zedec, that we read the first account in the Bible of the name Jerusalem (Josh. 10 v. 1). It had been predicted as far back in the time of Moses that the Lord God was going to establish his name there in that place, (Deuteronomy 12:5-7,11). It also was the site (Mount Moriah) of the offering up of Isaac as a sacrifice by his father Abraham (Genesis 22:2).
After the defeat of King Adoni-Zedec Jerusalem reverted back to its previous name of Jebus (meaning “trodden down”) and remained in the hands of the Jebusites for 400 years until the time of King David.
It was during the reign of King Saul that David, after defeating Goliath, took Goliath’s head and buried it in Jebus in a site to be known as the place of the skull (Golgotha) which, as we know, was later to be the site of the crucifixion of Jesus.
Right after the coronation of David as king over Israel, the city was taken by Joab (later to become David’s captain) with God’s assistance (2 Samuel 5:6-12) and Jebus then became Jerusalem, a name that has remained until this day. Also from that day it was called “The city of David” and played a great role in establishing the true worship of God with the Ark of God and a new temple constructed there during the reign of King Solomon.
Following the dividing of the kingdom in the time of Rehoboam, Solomon’s son, ten tribes constituted the kingdom of Israel to the north and two tribes, Judah and Benjamin, formed the nation of Judah in the south. Jerusalem continued to play an important role as Judah’s seat of worship and capital.
Various kings, some righteous and many wicked, sat upon the throne of Judah for some 340 years until the wicked reign of King Zedekiah. The Babylonians successfully attacked the city and took almost all the Jews of the land into captivity to Babylon where they remained for some 70 years. The city lay in virtual ruins for that 70 year period. Under the leadership of Ezra and Nehemiah, during the reign of King Cyrus of Persia, the people returned and rebuilt the city and temple.