Gandalf and the Necromancer's Enmity
Gandalf's hostility toward the Necromancer is one of the oldest and most consequential threads running beneath the surface of Bilbo Baggins's adventure, though it never becomes the main action of the tale. The Necromancer is a shadowy figure of immense power, an enemy far beyond the combined strength of all the dwarves in the world, as Gandalf himself tells Thorin Oakenshield. This enmity explains why the wizard repeatedly disappears from the company's side: he has pressing business elsewhere, business that he considers more urgent than the recovery of the dragon-guarded treasure. The conflict is not a mere subplot but the reason Gandalf is absent at critical junctures, and it ultimately determines the fate of the northern lands long after Smaug is dead.
Origins and Discovery
The roots of Gandalf's enmity with the Necromancer lie in events that occur before the story of The Hobbit begins. Gandalf reveals that he found Thorin's father, Thrain, a prisoner in the dungeons of the Necromancer. Thrain was witless and wandering, having forgotten almost everything except the map and the key to the Lonely Mountain. Gandalf himself only just escaped from that encounter, describing it as a nasty and dangerous business. This rescue attempt—and its failure—gives Gandalf a personal stake in opposing the Necromancer, as well as possession of the map that sets the entire quest in motion. When Thorin speaks of paying back the goblins of Moria and giving thought to the Necromancer, Gandalf dismisses the idea as absurd, insisting that the Necromancer is an enemy beyond the powers of all the dwarves put together.
The White Council and the Expulsion
The climax of this offstage conflict occurs during the period when Gandalf has left Bilbo and the dwarves to enter Mirkwood on their own. Bilbo learns only later, while recuperating at Elrond's house in Rivendell, that Gandalf had been to a great council of the white wizards—masters of lore and good magic. At that council, they had at last driven the Necromancer from his dark hold in the south of Mirkwood. Gandalf expresses hope that the Forest will grow somewhat more wholesome and that the North will be freed from that horror for many long years. Yet he also wishes the Necromancer were banished from the world entirely, a wish Elrond gently dismisses as unlikely to come about in this age or for many after. This expulsion is the hidden victory that parallels the more visible triumph over Smaug, and it is the reason Gandalf is absent during the most dangerous part of the dwarves' journey through Mirkwood.
Consequences for the Quest and the Wider World
The Necromancer's presence in southern Mirkwood directly affects the geography of danger that the company must navigate. Beorn warns the dwarves that if they try to go around Mirkwood to the south, they would enter the land of the Necromancer, a black sorcerer whose dark tower overlooks the region. This warning effectively forces the company to take the perilous forest path, which leads to their capture by the Wood-elves and their battle with the giant spiders. The Necromancer's influence also contributes to the general decay of the Wild: the roads out of the East toward Mirkwood vanish or fall into disuse, and the lands become more desolate and dangerous. Gandalf's success at the White Council thus has immediate practical consequences for the quest, clearing the southern route of its most terrible threat even though the dwarves never take that path.
Thematic Significance
The Gandalf-Necromancer enmity establishes a moral and cosmic scale that elevates The Hobbit beyond a simple treasure hunt. The Necromancer represents an evil that predates and outlasts Smaug, a darkness that even the wisest wizards cannot permanently defeat. Gandalf's divided attention—torn between the dwarves' quest and the larger war against the Necromancer—illustrates the theme that no adventure exists in isolation. The wizard's hidden labors, culminating in the council that drives the Necromancer from Mirkwood, ensure that the northern world enjoys a new peace after the dragon's death and the Battle of the Five Armies. This offstage victory, achieved without Bilbo's knowledge, underscores Gandalf's role as a guardian of the wider world, working through both grand councils and the unlikely agency of a single hobbit.