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