And David and all Israel went to Jerusalem, which is Jebus; where the Jebusites were, the inhabitants of the land.
The Jerusalem of the verse is Jebus, the stronghold inhabited by the Jebusites, who were a remnant of the Canaanites. They occupied a fortified position on Mount Zion and Mount Moriah that had long been regarded as impregnable. Joab led the Hebrews in besieging and taking it. After its capture it became Israel's national capital, and its heathen name Jebus was changed to Jerusalem.
1 Chronicles 11:4 belongs to the fuller parallel account of David's becoming king over all Israel, when Israel acknowledged him as king at Hebron. It is part of the record of David's work, showing the division of his armies and what he did, his virtues and his mistakes, and God's mercy and guidance. That record is to be compared with the parallel record in Samuel, which gives much the same record with the exception of genealogies. The verse calls Jerusalem by its earlier name, Jebus, after the Jebusites who inhabited it. It records that David came from Hebron with all Israel to take the city while it was inhabited by the Jebusites. At that time the city occupied only the southwest part of its later site, Zion, and its walls made it seem almost impregnable. The Jebusites mocked David, claiming that even their blind and lame could keep him out. Joab was the first to enter the city and was rewarded with command of David's army, likely climbing the steep northeastern crags at night to get in. David captured the city from the Jebusites, establishing it as his center and beginning its settlement as the center of the Jewish nation. The city was in the same place where Melchizedek had reigned in Abraham's time.