Bilbo Baggins goes on an adventure with Gandalf and thirteen dwarves led by Thorin Oakenshield. They face many dangers on their journey, including trolls, goblins, giant spiders, and being imprisoned by wood elves. Bilbo discovers Gollum and a magic ring. Eventually they reach the Lonely Mountain, where Bilbo encounters Smaug the dragon. Smaug is later killed by Bard, and a battle ensues over the treasure of the mountain between dwarves, men, and elves. Though initially cast out, Bilbo plays a role in helping bring peace. By the end of his adventures, Bilbo has changed from the hobbit that he once was