What two groups of people did David attack and defeat? He attacked and defeated the Philistines and the Moabites. [18:1; 18:2]