1 Chronicles 11:7

And David dwelt in the castle; therefore they called it the city of David.

The Jebusite stronghold was taken, and David then dwelt in its fortress, so that dwelling gave the place its name as the City of David. That fortress at Jebus was made the national capital of Israel under his reign. With this change its former name Jebus was set aside and it was called Jerusalem.