Later, David attacked the Philistine people and defeated them. He took Gath and the small towns around it from the Philistines.