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