This battle was the result of the conflict between David and the Philistines in [1 Samuel 29:11](../29/10.md). The writer has finished telling the story of David in [1 Samuel 30:1-30](../30/01.md), and now he tells about the battle between the Israelites and the Philistines.