Overview
Goliath is a character in the Book of Samuel, described as a Philistine giant defeated by the young David in single combat. The story signified King Saul's unfitness to rule, as Saul himself should have fought for Israel. Modern scholars believe that the original slayer of Goliath may have been Elhanan, son of Jair, who features in 2 Samuel 21:19, in which Elhanan kills Goliath the Gittite, and that the authors of the Deuteronomic history changed the original text to credit the victory to the more famous character David.
The phrase "David and Goliath" has taken on a more popular meaning denoting an underdog situation, a contest wherein a smaller, weaker opponent faces a much bigger, stronger adversary.
Biblical accounts
In 1 Samuel 17, Saul and the Israelites are facing the Philistines in the Valley of Elah. Twice a day for 40 days, morning and evening, Goliath, the champion of the Philistines, comes out between the lines and challenges the Israelites to send out a champion of their own to decide the outcome in single combat, but Saul is afraid. David accepts the challenge. Saul reluctantly agrees and offers his armor, which David declines, taking only his staff, sling, and five stones from a brook.
From Wikipedia (CC BY-SA 4.0).