Hello!
Well, the first human settlements in Jerusalem started sometime during the Early Bronze Age, somewhere around 3500 B.C.
Then, in 1000 B.C. (2500 years later), King David conquered Jerusalem and made it capital of the "Jewish kingdom"
I hope this helps, and have a nice day!