Samwise Gamgee, later known as Samwise Gardner and commonly as Sam, is a fictional character in J. R. R. Tolkien's legendarium. Samwise is one of the chief characters in Tolkien's novel The Lord of the Rings, in which he fills an archetypical role as the sidekick of the primary protagonist, Frodo Baggins.Samwise Gamgee is first introduced in The Fellowship of the Ring. Sam is Frodo Baggins' gardener, having inherited the position as Baggins' gardener from his father, Hamfast "Gaffer" Gamgee. At the time of the War of the Ring, Sam was living in Number 3, Bagshot Row with his father.
As "punishment" for eavesdropping on Gandalf's conversation with Frodo regarding the One Ring, Sam was made Frodo's first companion on his journey to Rivendell. They were joined by Meriadoc Brandybuck and Peregrin Took, Frodo's cousins, and journeyed together to Rivendell where the Council of Elrond took place.