Samson went to Gaza, and saw there a prostitute, and went in to her.
With the story of Samson, the era of the Judgeship in Israel was concluded.  Samuel indeed judged Israel for awhile, but it was he who anointed Saul as Israel's first king, thus bringing in the institution of the monarchy.  It is not hard to understand why many in Israel began to clamor for a king.