Jerusalem became an Israelite city when David captured it from the Jebusites (2 Samuel 5:6–7). Jerusalem was likely where David took Goliath's head after he became king. However, David might have brought it to Jerusalem earlier to scare the non-Israelite residents.