A nd David dwelt in the castle; therefore they called it the city of David.
Then David lived in the strong-place. So it was called the city of David.