My Favourite Character
In Valinor, Gandalf was known as Olórin. As recounted in the "Valaquenta" in The Silmarillion, he was one of the Maiar of Valinor, specifically, of the people of the Vala Manwë; and was said to be the wisest of the Maiar. He lived in the gardens of Irmo under the tutelage of Nienna, the patron of mercy. When the Valar decided to send the order of the Wizards to Middle-earth in order to counsel and assist all those who opposed Sauron, Olórin was proposed by Manwë. Olórin initially begged to be excused as he feared he lacked the strength to face Sauron.
Gandalf the Grey was the last of the Istari to arrive in Middle-earth, landing in Mithlond. He seemed the oldest and least in stature of them, but Círdan the Shipwright felt that he had the highest inner greatness on their first meeting in the Havens, and gave him Narya, the Ring of Fire. Saruman learned of the gift and resented it. Gandalf hid the ring well, and it was not widely known until he left with the other ring-bearers at the end of the Third Age that he, and not Círdan, was the holder of the third of the Elven-rings.
Gandalf's relationship with Saruman, the head of the Order, was strained. The Wizards were commanded to aid Men, Elves, and Dwarves, but only through counsel; it was forbidden to use force to dominate them an injunction Saruman disregarded.
In the essay in Unfinished Tales it is stated that some thought Gandalf was in fact Manwë himself. However, this is refuted by the author since Manwë will not leave Valinor until the Final Battle at the end of days.
-The White Council
In "Of the Rings of Power and the Third Age" (in The Silmarillion) and "The Istari" (in Unfinished Tales), Christopher Tolkien fleshes out the background and the history briefly tabulated by date in Appendix B of The Lord of the Rings by his father J.R.R. Tolkien, who was deceased by the time these tales were published. Gandalf suspected early on that the Necromancer of Dol Guldur was not a Nazgûl but Sauron himself. He went to Dol Guldur (in T.A. 2063) to discover the truth, but the Necromancer withdrew before him. The Necromancer returned to Dol Guldur with greater force in T.A. 2460, and the White Council was formed in response (T.A. 2463). Galadriel had hoped Gandalf would lead the Council, but Gandalf refused, declining to be bound by any but the Valar who sent him. Saruman was chosen instead, as being most knowledgeable about Sauron's work in the Second Age.
Gandalf returned to Dol Guldur in T.A. 2850 "at great peril" and learned that the Necromancer was indeed Sauron returned. (This is when Gandalf found Thráin the Dwarf imprisoned in Dol Guldur and recovered the map and key to Erebor before Thráin died.) The following year the White Council was summoned, and Gandalf urged that Sauron be driven out. Saruman however reassured the Council that Sauron's evident desire to find the Ring would fail, as the Ring would long since have been carried by Anduin to the Sea; and the matter was allowed to rest. But at this time Saruman himself began actively seeking the Ring near the Gladden Fields where Isildur had been killed, not far from Dol Guldur.
- The Quest of Erebor
"The Quest of Erebor" in Unfinished Tales elaborates upon the story behind The Hobbit. It tells of a chance meeting between Gandalf and Thorin Oakenshield, Thráin's son, in the inn of the Prancing Pony in Bree. Gandalf had for some time foreseen the coming war with Sauron, and knew that the North was especially vulnerable. If Rivendell were to be attacked, the dragon Smaug could cause great devastation. Thorin was also keen to regain his lost territory, and so the quest was born.
In T.A. 2941, Gandalf arranged (and frequently accompanied) a band of thirteen dwarves and the Hobbit Bilbo Baggins to reclaim from the dragon Smaug the Dwarves' lost treasure in Erebor. To the quest, Gandalf contributed a map and key to Erebor, which he had received from Thráin II while exploring the dungeons of the Necromancer. It was on this Quest of Erebor that Gandalf found his sword, Glamdring, in a troll's treasure hoard, and that Bilbo found the One Ring, in a chance meeting with Gollum (though at the time it was thought to be a lesser ring).
After escaping from the Misty Mountains pursued by Goblins and Wargs, the party was carried to safety by the Great Eagles. Gandalf then devised a clever plan to convince the chief of the Beornings, Beorn who did not like uninvited guests or dwarves to house and provision the company for the trip through Mirkwood.
Gandalf left the company before they entered Mirkwood, saying that he had pressing business to attend to. He turned up again, however, before the walls of Erebor disguised as an old man, revealing himself when it seemed the Men of Esgaroth and the Elves of Mirkwood would fight Thorin and the Dwarves over Smaug's treasure. The Battle of the Five Armies ensued when hosts of Goblins and Wargs attacked all three parties. After the battle, Gandalf accompanied Bilbo back to the Shire, revealing at Rivendell what his pressing business had been: Gandalf had once again urged the Council to evict Sauron, since quite evidently Sauron did not require the Ring to continue to attract evil to Mirkwood. Then, in an event only briefly described (in The Silmarillion, The Hobbit, and The Lord of the Rings), the Council "put forth its power" and drove Sauron from Dol Guldur. Sauron, however, had anticipated this and withdrew as a feint, only to reappear in Mordor.
- The Fellowship of the Ring
As explained in The Fellowship of the Ring, Gandalf spent the years between The Hobbit and The Lord of the Rings travelling Middle-earth in search of information on Sauron's resurgence and Bilbo's mysterious ring, spurred particularly by Bilbo's initial misleading story of how he had obtained it as a "present" from Gollum. During this period he befriended Aragorn and first became suspicious of Saruman. He spent as much time as he could in the Shire, strengthening his friendship with Bilbo and Frodo, Bilbo's heir.
He returned to the Shire for Bilbo's "eleventy-first" (111th) birthday party in T.A. 3001, bringing many fireworks for the occasion. After Bilbo, as a prank on his guests, put on the Ring and disappeared, Gandalf strongly encouraged his old friend to leave the Ring to Frodo, as they had planned. Bilbo became hostile and accused Gandalf of trying to steal the Ring which he called "my precious", much as Gollum, the previous owner of the Ring, had done. (Isildur, who earlier possessed the ring and was destroyed by it, had written that "it is precious to me").Alarmed, Gandalf impressed on Bilbo the foolishness of this accusation. Coming to his senses, Bilbo admitted that the Ring had been troubling him, and leaving it behind for Frodo, he departed for Rivendell. Though Bilbo would never be entirely free of the desire for the Ring, he was the first to give it up willingly.
Over the next seventeen years, Gandalf travelled extensively, searching for answers. With Aragorn he sought to find Gollum. Aragorn eventually succeeded, and Gandalf questioned Gollum, threatening him with fire when he proved unwilling to speak. Gandalf learned finally that Sauron had forced Gollum under torture in Barad-dûr to tell what he knew of the Ring. This reinforced Gandalf's growing suspicion that Bilbo's ring was the One Ring.
Returning to the Shire, in T.A. 3018, Gandalf confirmed his suspicions by throwing the Ring into Frodo's hearth fire and reading the writing that appeared on the Ring's surface. He told Frodo the full history of the Ring, and urged him to take the Ring to Rivendell; for he would be in grave danger if he stayed in the Shire. Gandalf said he would attempt to return for Frodo's fiftieth birthday party, in order to accompany him on the road thereafter; and that meanwhile Frodo should arrange to leave quietly, as the servants of Sauron would be searching for him.
Outside the Shire, Gandalf encountered Radagast the Brown, another of the Istari, who brought the news that the Nazgûl had ridden forth and crossed the River Anduin and a request from Saruman that Gandalf come to Isengard. Gandalf left a letter to Frodo (urging his immediate departure) with Barliman Butterbur at the inn in Bree, and headed towards Isengard. There Saruman revealed his true colours, urging Gandalf to help him obtain the Ring for his own use. Gandalf refused, and Saruman imprisoned him at the top of the tower of Orthanc. Eventually Gandalf was rescued by Gwaihir the Eagle.
Gwaihir set Gandalf down in Rohan, where Gandalf appealed to King Théoden for a horse. Théoden, under the baleful influence of Gríma Wormtongue, Saruman's spy, told Gandalf to take any horse he pleased, but to leave quickly. It was then that Gandalf met the great horse Shadowfax, one of the mearas, who would be his mount and companion for most of the rest of the war. Gandalf pursued the horse for two days before Shadowfax permitted Gandalf to ride him. Gandalf then rode hard for the Shire, but did not reach it until Frodo had already set out. Knowing that Frodo and his companions would be heading for Rivendell, Gandalf began to make his own way there. He learned at Bree that the hobbits had fallen in with Aragorn. He faced the Nazgûl at Weathertop but escaped after an all-night battle, drawing four of them northward. Frodo, Aragorn and company faced the remaining five on Weathertop a few nights later. Gandalf reached Rivendell just before Frodo's arrival.
In Rivendell, Gandalf helped Elrond drive off the nazgûl pursuing Frodo and played a great part in the following council as the only person who knew the full history of the Ring. He also revealed that Saruman had betrayed them and was in league with Sauron. When it was decided that the Ring had to be destroyed, Gandalf volunteered to accompany Frodo now the Ringbearer in his quest. He also persuaded Elrond to let Frodo's cousins Merry and Pippin join the Fellowship.
Taking charge of the Fellowship (comprising nine representatives of the free peoples of Middle-earth, "set against the Nine Riders"), Gandalf and Aragorn led the Hobbits and their companions south. After an unsuccessful attempt to cross Mount Caradhras in winter, they crossed under the mountains through the Mines of Moria, though only Gimli the Dwarf was enthusiastic about that route. In Moria, they discovered that the Dwarf colony established there earlier had been overrun by Orcs. The Fellowship fought with the Orcs and Trolls of Moria, but were no match against "Durin's Bane," a Balrog from ancient times. At the Bridge of Khazad-dûm, Gandalf faced the Balrog to enable the others to escape.
After a short exchange of blows, Gandalf broke the bridge beneath the Balrog with his staff. As the Balrog fell, it wrapped its whip around Gandalf's knees, dragging him into the abyss. As his friends looked on in horror, Gandalf fell into shadow, crying "Fly, you fools!" as he went.
Neither Gandalf nor the Balrog was killed by the fall into the deep subterranean lake under Moria. Gandalf pursued the Balrog for eight days until they climbed to the peak of Zirakzigil. Here they fought for two days and nights. In the end, the Balrog was cast down and broke the mountainside with its fall. Gandalf himself died during this ordeal, and his body lay on the peak while his spirit travelled outside of time.