David's first encounter with the Philistines was his fight with Goliath. He went on to fight against the Philistines a few other times, always triumphing with the help of God. The Philistines worshipped many gods, the main one being Dagon, whose temple was located at Gaza. They were a seafaring people which helped them to attack many nations with ease.