[David] made him houses in the city of David; and he prepared a place for the ark of God, and pitched for it a tent.
An account of two victories over the Philistines is inserted (out of chronological order), probably to impress upon the reader how David’s fame was spreading (14:1-17; see notes on 2 Samuel 5:11-25).