Using his sword and the ring, Bilbo manages to kill some spiders and free some of the dwarves, allowing all of them to escape.
During this time, they become trapped in giant spider webs, and Bilbo must once again use the power of the ring to aid in their escape. Unfortunately, the forest is quite deceptive, and the team is soon lost and is forced to stray from the path to regaining their bearings. He then warns the group not to stray from the path during their trek through the woods. Upon arriving at Mirkwood forest, Gandalf departs from the group citing urgent business elsewhere. Beorn assists them by preparing them for their journey through the forest of Mirkwood. They seek refuge in a giant nest after being rescued by giant eagles before they proceed to the home of Beorn, a shapeshifter. They take off quickly as they realize that they are being chased by Wargs, which are giant wolves. Reaching the mouth of the cave, Bilbo realizes that the dwarves have already escaped and are waiting for him there. Bilbo uses the ring to turn invisible and escape from Gollum and the cave. Bilbo ends up winning the competition, but Gollum decides he should eat him either way and goes looking for the ring Bilbo has found. Bilbo challenges Gollum to a contest of riddles to determine whether or not Bilbo shall be eaten. While Bilbo wanders the caves alone, then he finds a gold ring and a creature named Gollum who wants to eat him.