
immediately after the capture, in the Great Goblin's cavern
Gandalf Kills the Great Goblin
As the Great Goblin prepares to kill Thorin, Gandalf extinguishes the lights and kills the Great Goblin with Glamdring. In the chaos, he leads the dwarves in an escape through the tunnels. The goblins pursue, but Gandalf and Thorin hold them off at a turn. This rescue saves the company and establishes Gandalf's power.