Sam serves as Frodo Baggins' faithful companion, providing support, encouragement, and unwavering loyalty throughout their journey. He also proves to be instrumental in the success of the quest to destroy the One Ring.