Jerusalem appears in biblical tradition before David, including the account of Melchizedek king of Salem in Genesis 14. By the time of the conquest, Jerusalem was a Canaanite city associated with the Jebusites.
David captured Jerusalem and made it the capital of his kingdom. He brought the Ark of the Covenant into the city, and Solomon later constructed the Temple there. Jerusalem thereby became both the political center of the Davidic monarchy and the principal sanctuary of Israel.
The prophets repeatedly addressed Jerusalem, warning of judgment while also proclaiming promises of restoration. Babylon destroyed the city and First Temple in 586 BC. Jewish exiles later returned, rebuilt the Temple, and restored Jerusalem's walls.
Jesus visited Jerusalem throughout His ministry and entered the city shortly before Passover in the final week of His earthly life. His trial, crucifixion, burial, and resurrection occurred there. Acts records the coming of the Holy Spirit at Pentecost and the establishment of the earliest Christian community in Jerusalem.