After this, David defeated the Philistines, subdued them, and took Gath and its surrounding villages from Philistine control.