Finally, the conflict was over. The great peak of ancient Jewish history had arrived. All 12 tribes came under David's jurisdiction and (for the most part) remained loyally under his authority until the day of his death. To mark the expansion of his realm, David moved his capitol city from Hebron to Zion... that is, to Jerusalem. In order to do this, he had to drive out the Canaanites who lived there; specifically, the Jebusites.
The Jebusites didn't think that David could defeat them. In fact, they told him that even their handicapped citizens would be enough to keep him out of their city. But, they misjudged him on that point. He utterly conquered that city and moved into the fort that was there. He established it as the pride of Israel... it became known as the City of David. It was destined to become the city of the Great King... the city of God.
David settled in quickly there and began to live life generally as kings did in his day. He made peace with some nations, fought wars with other nations, married wives, procreated plentifully and began to spread out his influence as widely as he could. Among the children that were born from David's harem in Jerusalem, there were 2 very important sons: Nathan and Solomon. It would be through these 2 sons that Jesus' genealogy would be traced.