
Who Actually Put the Spells on the Trolls’ Gold?
The most defensible answer is that the travelling company put spells over the buried gold, but Tolkien does not identify which member or members performed the magic. Gandalf and the dwarves were present, and either could have participated. Yet the narrator of The Hobbit attributes the enchantment to no individual.
In Chapter 2, “Roast Mutton,” the travellers discover the trolls’ plunder, remove pots of gold from their cave, and bury them near the road. The narrator describes them as “putting a great many spells over them.” This establishes actual magical activity, not merely clever concealment. But the grammatical subject is the collective “they,” referring to the travellers handling the treasure.
A collective subject need not mean every participant performs every task. The company can bury treasure and protect it with spells without every companion personally casting one. Neither Gandalf’s exclusive responsibility nor the dwarves’ exclusive responsibility is established. The individual attribution remains open.

What the Burial Passage Actually Establishes
After Gandalf rescues the company from three trolls, the travellers discover their cave. Inside are provisions, miscellaneous plunder, weapons, and pots of gold coins. They collect supplies and valuables, eat, and rest before attending to the treasure.
That afternoon, they bring up their ponies, transport the gold away from the cave, and bury it secretly near the track beside the river. They place numerous spells over it, anticipating that they might someday return to reclaim it.
The passage presents a connected sequence: bringing up the ponies, moving the pots, burying them, and applying spells. No new named subject appears when physical concealment becomes magical protection. The enchantment belongs to the same collective undertaking.
Three conclusions follow. First, the spells accompany the original burial rather than being added later by an unidentified visitor. Second, their purpose is connected with preserving the treasure for possible recovery. Third, their application is described as completed, not merely attempted.
However, Tolkien does not explain precisely what the spells accomplished. He supplies neither their words nor their duration, and does not say whether they prevented discovery, could be detected, or could be overcome. Calling them hiding spells reasonably describes their context, but is not a formal classification supplied by the narrator.
Above all, the passage identifies no individual practitioner. That does not imply there was no specific spellcaster; it means the published account does not identify one.

Why Gandalf Is the Obvious Candidate, but Not the Proven One
Gandalf is an obvious candidate because his magical abilities are demonstrated in the same chapter. He saves the captured dwarves by manipulating the trolls’ quarrel, making his voice seem to come from different speakers until dawn overtakes them. The narrator explains his deception, explicitly assigning responsibility to the wizard.
The cave entrance provides an even closer comparison. When the company encounters the trolls’ stone door, the others cannot open it by pushing, while Gandalf attempts various incantations. Bilbo eventually produces the key acquired during the trolls’ quarrel, and Gandalf uses it to open the entrance.
Here Tolkien distinguishes physical efforts from magical attempts. Gandalf’s incantations are expressly attributed to him, although they fail to open the door. The key, not the spells, enables entry.
That specificity matters. When the narrator wishes to identify Gandalf as the person attempting incantations, he can do so. Yet the later burial passage does not repeat that identification.
This difference does not exclude Gandalf. An author can name someone individually in one scene and include that person within a collective subject in another. Nothing says Gandalf declined to help enchant the gold.
Nevertheless, demonstrated magical expertise does not justify replacing collective narration with an exclusive attribution. A wizard accompanying dwarves would naturally seem qualified to protect treasure, but qualification is not proof of participation.
Gandalf might have supplied every spell, contributed some, or performed none. The published account does not distinguish among these possibilities.

The Dwarves’ Attempted Opening Spells Are the Strongest Comparison
The strongest reason not to assume Gandalf’s exclusive responsibility appears in Chapter 11, “On the Doorstep.”
At the Lonely Mountain, the travellers locate the concealed entrance indicated by Thorin’s map. The apparent rock face offers no obvious mechanism. They try physical force, plead with the door, and speak “fragments of broken spells of opening.” Nothing happens.
By this point Gandalf has departed from their immediate journey. The relevant company consists of Bilbo and Thorin’s dwarves, so Gandalf cannot be treated as an unmentioned participant in these attempts.
The episode therefore indicates that the remaining travellers possessed at least some knowledge of verbal formulas understood as opening spells. Bilbo is present, however, and the collective wording does not establish which individuals spoke, that every dwarf participated, or that Bilbo remained silent. The attempts are nonetheless associated with Thorin’s companions rather than Gandalf.
Important qualifications remain. Tolkien calls the spells fragments, suggesting incomplete or imperfectly remembered formulas. Their failure establishes that the door did not respond, not that the speakers possessed no magical knowledge. Equally, it does not prove they could produce a successful enchantment.
The words might represent a genuine but unsuccessful working spell, a traditional incantation, or formulas associated with a particular door. Tolkien does not explain their requirements or classify their effectiveness.
Crucially, attempting opening spells differs from successfully placing protective spells. The Lonely Mountain passage demonstrates attempted magical speech, not the dwarves’ independent mastery of the enchantment used over the trolls’ gold.
It makes dwarven participation in that earlier undertaking plausible without identifying its spellcaster.
Three Passages, Three Different Levels of Attribution
Read together, these episodes distinguish explicitly identified magical attempts, collectively reported accomplishments, and attempts by travellers operating without Gandalf.
At the trolls’ cave, Gandalf attempts incantations against the stone door. The individual is named, the incantations fail, and Bilbo’s key permits entry.
At the burial site, the company places numerous spells over the concealed gold. The action is completed, but no individual practitioner is named, and neither the procedure nor an independent test of effectiveness is described.
At the Lonely Mountain, the travellers attempt fragments of opening spells. Gandalf is absent, the attempts fail, and the narrator does not identify everyone who speaks.
These descriptions concern different operations and circumstances. They cannot be compressed into a general rule governing who can perform magic.
One argument reasons that Gandalf demonstrably knows spells and therefore must have enchanted the gold. That transforms a plausible possibility into an unsupported conclusion.
The reverse argument reasons that the dwarves attempt spells later and therefore must have enchanted the gold earlier. This likewise exceeds the evidence, especially because the later formulas fail and concern opening rather than protecting treasure.
Knowing magical words, attempting an effect, and completing an enchantment are distinct categories. Tolkien depicts these without establishing that the underlying abilities are interchangeable.
No comprehensive theory of spellcasting is required to reconcile the scenes. The narrator simply provides different levels of attribution and technical information. That unevenness should be preserved rather than resolved by assigning every unnamed enchantment to the nearest wizard.
Does Recovering the Gold Reveal Who Enchanted It?
The treasure returns in Chapter 19, “The Last Stage,” when Bilbo and Gandalf travel west after the Battle of Five Armies and their stay at Rivendell. Passing the trolls’ former haunt, they recover the gold, still hidden and undisturbed.
This completes an earlier narrative intention. The company had concealed wealth it could not conveniently carry east, and the homeward journey provides an opportunity to reclaim it.
The outcome is consistent with the protective arrangement serving its purpose. At minimum, the gold remained undiscovered in its hiding place until Bilbo and Gandalf returned.
But the scene cannot establish why. Physical concealment might have contributed, as might the spells. Tolkien does not isolate their effects or independently verify the enchantment’s effectiveness.
Nor does Gandalf’s participation in the recovery prove he originally cast the spells. He witnessed the burial and could remember the location without having performed the magic. Bilbo’s involvement likewise proves nothing about his earlier participation in spellcasting.
There is also no described procedure in which Gandalf recognizes, lifts, or dismisses his own enchantments. Such an explanation would be an invention.
The recovery nevertheless establishes that the buried treasure was not forgotten narrative decoration. Both the gold and the intention to reclaim it are integrated into the conclusion. Yet this second appearance supplies no individual attribution.
The plot resolves whether the treasure can be recovered while leaving its magical authorship unanswered. Successful recovery is not retrospective proof of who placed the spells.
What Dwarven Magic Does and Does Not Prove
An objection sometimes arises that dwarves are craftsmen rather than wizards, supposedly leaving Gandalf as the only credible practitioner. That distinction is too rigid for Tolkien’s presentation of dwarven culture.
In Chapter 1, “An Unexpected Party,” the dwarves’ song evokes for Bilbo treasures, skilled hands, and magic. This association appears within the narrator’s description of Bilbo’s imaginative response to dwarven artistry. It does not establish that every member of Thorin’s company knows protective incantations, but it complicates any absolute separation between dwarves and magic.
Elsewhere in Tolkien’s writings, dwarven craftsmanship is closely associated with unusual powers. Still, general cultural background cannot establish responsibility for a particular magical act beside a river. Remarkable traditions do not imply that every individual practices every art.
The reverse assumption is similarly unwarranted. Gandalf is a wizard capable of extraordinary deeds, but his presence does not make every nearby enchantment his work.
The Lonely Mountain episode provides stronger evidence than broad claims about dwarven craftsmanship because it concerns the same book and travelling companions. Thorin’s company actually attempts spell-language without Gandalf.
Yet attempted opening formulas are not equivalent to accomplished protective magic. The narrative does not establish whether the dwarves knew suitable protective spells, whether Gandalf assisted them, whether several people contributed, or whether one practitioner handled the enchantment while everyone else buried the gold.
There is consequently no basis in these scenes for attributing a particular incantation to Thorin, Balin, or any other named dwarf.
Dwarven magical knowledge deserves consideration, but it cannot substitute for missing evidence of individual action.
The Verdict: A Collective Action, an Unnamed Spellcaster
The answer depends on what “who” means.
If it asks which group receives narrative credit for protecting the trolls’ gold, the answer is the travelling company. Tolkien uses collective narration for the burial and the spells placed over the treasure.
If it asks which individual actually spoke or performed those spells, Tolkien does not say.
Gandalf has directly demonstrated magical expertise in the troll episode, and his unsuccessful cave-door incantations are explicitly attributed to him. That makes his participation credible, not confirmed.
The dwarves are also plausible participants. Their later attempted opening spells show engagement with magical formulas in Gandalf’s absence. But this does not establish successful protective magic by any particular dwarf or prove that Gandalf was uninvolved in the burial.
The narration permits one spellcaster acting within a collective undertaking, several practitioners cooperating, or another unreported division of labour. It does not establish that every companion, including Bilbo, personally cast a spell.
The most faithful interpretation therefore preserves both parts of the evidence: spells were indeed placed over the gold, but their individual authorship is unidentified.
There is no contradiction requiring an invented magical mechanism. Tolkien sometimes identifies magical actors precisely and sometimes reports collective action without allocating its tasks.
Gandalf may have cast the spells. The dwarves may have cast them. The company is credited with placing them, but the actual spellcaster or spellcasters remain unspecified. That is where the published evidence ends.
Sources & Notes
This article is based on close reading and interpretation of Tolkien's published works and related source material where relevant.
