While David was king of Israel, he won many battles over the Philistines. He brought them under his control. He took Metheg Ammah away from them.