Later, David defeated the Philistines, conquered them, and took the city of Gath and the small towns around it.