David founded a large and powerful state. He united the lands of all twelve tribes into one country. His task was to create the capital of this state. He chose Jerusalem, not only because the center and foundation of the Jewish faith - the Temple Mount is located above this small city, but also because no one of the twelve tribes did not own the land of this city and none of them could claim domination. Above us is the Temple Mount, opposite Mount of Olives, a steep slope of the town of David, and its ramparts go down.
Photo By Omerm - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=36378726