The following quote is taken from evilbible.com:
You can read the full story of Samson in Judges chapters 13-16:
There are a few things that we must consider when reading this passage. First, the Philistines were a nation that was hostile to the Israelites, oppressing them for 40 years (Judges 13:1). They murdered Samson's wife and father-in law by burning them to death (Judges 15:6). God had determined that he would use Samson to deliver Israel from the Philistines (Judges 13:5, 14:4).