Gandalf

Gandalf was a member of the Istari and a Maia who was sent to watch over Middle-earth during the Third Age. Unknown to many was that Gandalf was an emissary of the Valar, the powers of the world. Gandalf helped orchestrated the downfall of Sauron, bringing peace to Middle-earth.
== Character overview ==
Gandalf one of the Istari (regarded as Wizards) who had no fixed residence. He came and went as he pleased. In the Valar, Gandalf was known as Olórin and was sent to Middle-earth in human form as a guardian there. He was friends of Many races, but never the evil races that served Sauron or had deep, dark purposes. Gandalf later became known as Gandalf the White after falling in a battle with Balrog of Morgoth.
== Biography ==
=== Earlier Days ===
In the Undying Lands, Gandalf was once known as a Maia of Manwe, the Wind King, Varda, Irmo, and Nienna, given the name Olorin, who refused to go initially, fearing Sauron, but Manwe told him to not be afraid and overcome fear. He was not the third, but the second Valar suggested.
=== Arrival in Middle-earth ===
When he was in Middle-earth, Olorin was renamed Gandalf and learned from elves and later taught them. Gandalf was also given Narya, the ring of Fire.
=== The White Council ===
While living in Middle-earth, while his fellow wizards Radagast and Saruman decided to settle down in Rhosgobel and Isengard, respectively, Gandalf chose to travel around the world, and became known as 'Gandalf the Wandering Wizard'. He had a close relationship with Lady Galadriel, the Elven Lady of Mirkwood, and Elrond, Lord of Rivendell. Together, he, Galadriel, Elrond and Saruman formed the White Council. However, as Gandalf's power grew, as did Saruman's resentment, fear and jealousy of his fellow Wizard.
==== The disappearance of Thrain ====
Gandalf sometime befriended Thrain. He also is known to a young Thorin Oakenshield. Years before meeting Thorin, Gandalf met his friend Thrain before they went into battle to fight for the Battle of Moria. Gandalf urged Thrain to march upon Erebor, face Smaug and kill the dragon and take back the Lonely Mountain. Thrain refused, knowing there was a strain upon the Mountain. He gave Gandalf the map and key before going into battle
=== Concerning Hobbits/Befriending Bilbo Baggins ===
Gandalf befriended the Hobbit, Gerontius "The Old" Took and his daughter, Belladonna Took. During most of the parties, Gandalf set fireworks on Gerontius' mid-summer's eve, where Gandalf encountered a young Bilbo Baggins.
=== Meeting Thorin Oakenshield ===
During an unknown amount of time, Gandalf travels to Bree intending to find Thorin there. However, on the way there, he comes across servants of Sauron who mistook him from a vagabond. A fight breaks out and Gandalf fights off the unsavory characters while also taking one of the messages that the messengers carry. He later meets Thorin at Bree and literally saves his skin before the dwarf king is assassinated. When the wizard introduces who he is, Thorin claims that he knows who Gandalf is. The latter of the two asks why the former is in Bree, to which the dwarf prince claims he is looking for his father. Gandalf suddenly falters, with Thorin realizing that Gandalf is "like the others' and think that Thráin is dead. He retells his tale of how he tried searching for his father until the last body and found no sign of him. After Thorin tells his tale the wizard curiously asks what happened to the Ring that Thrór once wore. The dwarf king recounts that his grandfather gave it to his father before they went into battle.
Getting onto other business, Thorin states that Thráin came to Gandalf before the battle and inquires what Thráin and Gandalf had discussed. Gandalf claims that it is not a coincidence and claims that he fought men who mistook him for a vagabond, to which Thorin sarcastically remarks the messengers probably regretted that. Gandalf shows the dwarf king the message and states that it is a promise of payment for Thorin's head. The King in horror decides that its time to act now as Gandalf suggests. Thorin reminds the wizard that they will only answer to the king and whoever wields the Arkenstone. As they watch the Squint and Bill Ferny, Sr. leave Bree, Gandalf claims that he will help Thorin reclaim Erebor and the Arkenstone. When the dwarf king states how he will help them and points out that the Arkenstone is guarded by a fire breathing dragon and buried beneath the gold, Gandalf states that they will need a burglar. (The Desolation of Smaug)
Gandalf then plots to have the company to make sure Smaug is destroyed before the dragon can ally himself with Sauron and also plans to have Bilbo in the company to give the wizard courage while secretly afraid, but also decides that Bilbo will be a calming influence on Thorin. However, things take an unexpected turn when Thorin begins to remain skeptical of Gandalf's decisions for allowing a hobbit burglar into their company, but nevertheless accepts to meet Bilbo.
One of the most powerful Wizards in all Middle-earth, Gandalf the Grey joins the quest to reclaim the Dwarf Kingdom of Erebor and the great treasure that lies within its stone halls from a fire-breathing dragon, Smaug the Terrible. Along the way, Gandalf finds evidence that an ancient evil may have found its way back into the world. In order to uncover the truth, Gandalf must leave his companions to fend for themselves – a journey that will take him into the darkest corners of Middle-earth where his worst suspicions are confirmed.
=== The Hobbit: An Unexpected Journey ===
Gandalf is first seen in a flashback entertaining the Hobbits of the Shire with his renowned fireworks and finds himself pestered by a young Bilbo Baggins before he is taken by his mother.
Years later, Gandalf returns to the Shire after planning the Quest of Erebor with Thorin Oakenshield and intended to recruit the now adult Bilbo Baggins into the Company. After seeing Bilbo's reluctance for adventures and inadequate memory of their encounter, Gandalf chastises him for the state he is in, and the adventure seeker he once was, before quietly leaving a mark on his door for Thorin and Company to recognize and enter.
That night, after some of the Dwarves had already arrived at Bag End, Gandalf arrived with Dori, Nori, Ori, Bifur, Bofur, Bombur, Óin and Glóin. Bilbo looked at the wizard in disbelief as the Dwarves collapsed on the floor of his house. Gandalf began helping with the food and Dori offered him some camomile tea. Gandalf politely declined and asked for a little red wine. Gandalf walked around and began counting the Dwarves, realising that Thorin had not yet arrived. Dwalin told the wizard that he was late and that he would soon arrive. Dori walked up with Gandalf's wine, telling him it had a fruity bouquet. While Bilbo was walking around trying to keep his house in check, Gandalf asked him what the problem seemed to be. Bilbo started to complain about the Dwarves and asked Gandalf why they were there. Gandalf watched in amusement and the Dwarves began throwing around the dishes, alarming Bilbo. Finally Thorin arrived, knocking. Gandalf stated that he had arrived and answered the door. Thorin told Gandalf he had gotten lost and wouldn't have found the place had the mark not been on the door. Bilbo claimed there was no mark but Gandalf told him he had put it there himself. Gandalf introduced Bilbo to Thorin, who wasn't impressed with Gandalf's choice for a fourteenth member of the company. The Dwarves and Gandalf began their meeting, talking quest business. During the talking, the Dwarves began to get rowdy and Dori asked Gandalf how many Dragons he had killed in his time, Gandalf avoiding answering the question. When Balin claimed there was no way to enter the Lonely Mountain, Gandalf told him it wasn't entirely true, producing the key to the Hidden Door. Thorin asked how had come by it and Gandalf revealed Thráin had given it to him and now he was giving it to Thorin. He told them that Dwarf doors were invisible and there was hidden clues hidden in the map although he didn't have the skill to find them. He added that there were some in Middle-earth that could. When they began to talk about Bilbo's inclusion in the quest, the Dwarves began to bicker about whether he was burglar material and whether he would just hold them back. Gandalf used his power to rise up in a terrifying darkness and his voice boomed across the room, telling the Dwarves that if he said Bilbo was a burglar then a burglar he was. He expanded, telling them that Bilbo was useful because Hobbits were light on their feet and also because Smaug would not be accustom to the smell of Hobbit. He told them Bilbo had a lot more to offer then any of them knew, including the Hobbit himself. Bilbo decided not to sign but Gandalf made sure to leave the contract sitting out when the Company left in the early morning hours. He made a bet with one of the other Dwarves that Bilbo would decide to join them and when the Hobbit turned up he claimed the bag of coins owed to him. He told the Hobbit that he never doubted him for a second. When Bilbo lost his handkerchief, Gandalf told the Hobbit he was going to have to do without a lot more things then just a handkerchief before their journey was over.
The Company took a break for the night in the Lone-lands and Gandalf sat down, smoking his pipe as Balin told the story of the Battle of Azanulbizar.
Upon reaching the Trollshaws, Thorin ordered the Dwarves to set up camp for the night. Gandalf scolds him, saying that they should continue on to Rivendell so that Elrond could read their map. Thorin told the wizard that he would not go near the Elves and Gandalf got angry, storming off. Gandalf left the company, saying that he had dealt with enough Dwarf for one day.
When the Dwarves and Bilbo were captured by the Trolls Tom, Bert and William, Gandalf returned to them and split a stone which let the light from the sun infiltrate the camp. The sun turned the Trolls to stone. Thorin asked Gandalf where he had gone and the wizard told him he was looking ahead. When quizzed on why he had returned all of a sudden, Gandalf told him he had been looking behind. They entered the Troll hoard and discovered the swords Orcrist and Glamdring. Gandalf told Thorin he couldn't wish for a better blade and took Glamdring for himself. On the way out, he found another smaller blade on the ground and decided to give it to Bilbo.
Radagast the brown, a fellow member of the Istari, arrives and tells Gandalf of his sightings in Dol Guldur and Mirkwood. Having claimed to have briefly fought the returned Witch King, he gives Gandalf the Morgul Blade that the Nazgul used as evidence.
While in Rivendell, Gandalf meets his old friend Elrond, who identifies his sword as Glamdring, an ancient sword once wielded by the King of Gondolin. When Elrond inquires to the Wizard travelling on the great east road, Gandalf persuades Thorin to show Elrond the map. Thorin is reluctant at first, but Gandalf rebukes him for his prejudice. Thorin yields and reveals the map. Elrond translates the moon runes on the map, after which he deduces their plan to enter into Erebor. Elrond deems it unwise and reminds Gandalf that he is not the only guardian keeping watch over Middle-Earth.
Gandalf asserts that Thorin is within his rights to reclaim Erebor. The Wizard also feels that he is not answerable to anyone, just as Elrond brings him before his old friend, Galadriel. Gandalf is visibly pleased to see the Elf Queen, complimenting her beauty. However, Gandalf is less pleased when Saruman reveals himself, knowing that he has some explaining to do.
Saruman bemoans Gandalf's "scheming", yet Gandalf asserts that his is doing the right thing. Galadriel divines his thought, knowing that he is worried about the dragon. Gandalf confesses that Smaug may align with the Enemy, and therefore the dragon presents an imminent threat. Saruman refutes this, arguing that Sauron is vanquished and Gandalf's meddling is tiresome. But Galadriel rebukes Saruman, allowing Gandalf to voice his concerns about the Necromancer in Dol Guldur and the threat he poses. Despite Gandalf's account from Radagast, Saruman begins to rant about the shortcomings of the brown wizard. Galadriel reaches out to Gandalf in thought and perceives that he is carrying a relic of Mordor. Gandalf confirms as much and reveals the Morgul Blade. Saruman falls silent at this, while Galadriel and Elrond are visibly worried.
Overall though Saruman is unmoved; instead he seems more concerned with the Dwarves and their mission to Erebor. He deems it too risky, but Gandalf has already foreseen this and has told the Dwarves to leave at dawn. Galadriel suddenly realises this as she reads his thoughts, but she does not break his confidence.
Later on Galadriel admits that Gandalf is right to assist Thorin. She is also concerned about the Necromancer, knowing that the entity in Mirkwood is very dangerous. When she questions Gandalf on Bilbo's involvement, Gandalf confesses that the kindness and love found in Hobbits gives him courage to fight on, even though he is afraid. Galadriel accepts this wisdom and promises to assist Gandalf if he needs her. After this, she suddenly vanishes.
Meanwhile, the Dwarves and Bilbo leave while the Elves are distracted so that they wouldn't stop them from leaving. They get captured by the Goblins of the Misty Mountains and are brought before the Great Goblin.
When Thorin and his companions are about to be executed by Goblins, Gandalf blasts them all back with a powerful light. The Dwarves are roused and Gandalf leads them to safety, cutting down Goblins in his path. He even uses his power to dislodge a boulder, sending it tumbling into oncoming Goblins. Eventually the Great Goblin blocks their path and tries to threaten the the WIzard. Gandalf manages to evade the Goblin's attacks and poke him in the eye with his staff, slice the Goblin's torso open before finishing him off by slitting the Goblin's throat.
The collapsing scaffolding sends Gandalf and the Dwarves to the bottom of the cavern. Miraculously, they all survive. Gandalf ushers them out of the mountain and into the open again.
After facing Azog and his minion orcs, the company is rescued by Eagles who carry them to the Carrock.
== The Hobbit: The Desolation of Smaug ==
Gandalf leads the company all the way to Mirkwood, but leaves them there, heading to investigate the tombs of the Nazgul. Once he reaches the High Fells, he meets Radagast there and the two find that the tombs were indeed empty. Gandalf hurries to investigate Dol Guldur, sending Radagast to warn the lady Galadriel. Once inside, he starts lifting the spell of concealment that is on the old fortress. Taken by surprise, he is jumped onto by Thrain, who is still alive. After a long fight, the crazy dwarf is bested by the wizard, who heals his broken mind. Thrain tells Gandalf of how Azog took his ring and that Thorin must not enter the mountain for the Necromancer had an alliance with the Dragon. The two round a corner and are found by Azog who attacks Gandalf and shows him the legions of orcs and wargs below. Gandalf and Thráin escape, only to be confronted by the Necromancer. The dark spirit, swallows Thrain up into his black mass and throws all his power at the wizard. Gandalf defends himself in a ball of light but is defeated. The necromancer melts and snaps his staff, revealing himself as Sauron. Gandalf is caught by orcs who suspend him high in a spiky cage. He sees Azog and the Guldur Orcs leaving for war.
== The Hobbit: The Battle of the Five Armies ==
Sauron orders Gandalf's ring and finger to be chopped off and the Torturer of Dol Guldur brings down the cage to take out the dark lords bidding. He is stopped by Galadriel, who has arrived with Saruman, Radagast and Elrond. Elrond and the white wizard fight the Nazgul while Radagast escapes with Gandalf. The other three stay behind to face Sauron.
Radagast and Gandalf see Sauron leave and watch him disappear into the distance. Radagast gives him his staff and wishes him luck.
Gandalf leaves Radagast, taking his staff and heads to Erebor to warn them of the incoming Orc armies. When he arrives, the Dragon is dead, the elves of Mirkwood have arrived and Thorin and Company have reclaimed the mountain. Gandalf reunites with Bilbo who gives the Arkenstone to Bard. Thranduil doesn't believe Gandalf about the approaching orcs and assembles his armies outside Erebor alongside Bard's men. When Bard pulls out the Arkenstone, Bilbo admits that he took it. Thorin orders him killed but none of the other dwarves act so the dwarf king prepares to do it himself. Gandalf emerges below and convinces Thorin to let him go even though the dwarf vows never to mess in the affairs of Hobbits or Wizards again. The Iron Hills Dwarf Army arrives and prepare to fight the elves but a horn blows from Ravenhill and signals that a huge army of Orcs is arriving.
Gandalf heads into Dale with the men to defend the city but the orcs swarm in through gaps in the walls. He notices Thorin leave Erebor and head to Ravenhill to kill Azog. Gandalf meets Bilbo mid-battle just as Legolas and Tauriel arrive from Gundabad with the news that a whole new army of orcs, Trolls and Goblins had left the fortress and many of them were headed for Ravenhill. Gandalf states that Thorin must be warned but whoever does this task mustn't be seen by the enemy. Bilbo volunteers, telling Gandalf that he wouldn't be seen.
Later on, after the battle, Gandalf grieves Thorin's death with Bilbo and the other remaining Dwarves. While sitting next to Bilbo, he struggles to light his pipe. He later attends the Dwarf King's funeral and accompanies Bilbo back to the shire letting it be known that he knew most of the time that the hobbit had been keeping a magic ring and warned him that they weren't to be taken lightly.
== The Lord of the Rings: The Fellowship of the Ring ==
60 Years later Gandalf visits the shire and is met by Frodo at Eastfarthing. The two share a joke when Frodo greets the Wizard with "You're late". Gandalf immediately responds "A Wizard is never late, Frodo Baggins. Nor is he early. He arrives precisely when he means to!". On the way to Bag End, Gandalf claims that he had little to do with the matters of the Dragon, other than giving Bilbo a gentle push. Most of the hobbits in the shire, especially the children, are delighted to see Gandalf again. The Wizard even sets off some of is magical fireworks for the young hobbits. Once he arrives at Bag End, Gandalf finds that Bilbo is unwilling to see guests, however Gandalf calls out "And what about very old friends?" Immediately, Bilbo answers him and is thrilled to see the Wizard. But Gandalf notes that oddly Bilbo has not aged as much as he should have done in 60 years. Talking over tea, Bilbo confesses that he is in fact weary and plans on leaving the Shire after his 111th birthday party.
Gandalf attends the party and sets off fireworks to entertain the Hobbits. Meriadoc Brandybuck and Peregrin Took sneak into a tent with one of the fireworks and set off the special dragon type. At first the dragon alarms everybody, especially Frodo as he believes it is coming for Bilbo, who dismisses it as nonsense. But the firework explodes in a dazzling display. It amazes the crowds, especially Merry and Pippin, but Gandalf bears down on them and grabs them by the ears. Musing on how he might have known, he sets them to work cleaning dishes. Bilbo begins his speech, but begins to act peculiar and abruptly announces that he is leaving. The hobbit finishes his speech by putting on the ring and vanishing, to the shock of Frodo and the others watching. Somehow, the Wizard is able to reach Bag End before Bilbo can. When Bilbo arrives, he is shocked to find Gandalf already there.
The Wizard reminds him that magic rings are perilous to use. He also advises Bilbo that he should leave the ring for Frodo. At first Bilbo complies, but suddenly becomes angry and ferocious, much to the alarm of Gandalf. Very soon they quarrel, until at last Gandalf becomes angry and warns Bilbo not to take him for a mere conjurer. The room darkens and Gandalf begins to transform into a Dark Wizard, terrifying Bilbo. But it passes, as Gandalf calms and simply says he is trying to help Bilbo. Shaken, Bilbo shakes off the sudden possession from the ring and, with great force of will, allows it to fall from his hand. Bilbo departs for Rivendell, hoping to finish his book and have a peaceful time for the remaining years of his life.
Meanwhile, Gandalf approaches the fallen ring. Curious, he reaches out to touch it, but stops just short when he suddenly senses a burst of evil from the ring. Gandalf puts time aside to smoke and ponder the meaning of this ring and its true nature, noting how Bilbo called it "my precious..." Frodo later arrives looking for Bilbo, stumbling upon the ring. He finds Gandalf is deep in thought, where the wizard announces that Frodo must keep the ring safe. Gandalf prepares to leave, much to Frodo's confusion, but Gandalf states that he needs to find answers.
Gandalf rides to Gondor, the Kingdom of Men. From afar he sees the mountain walls of Mordor, and beyond he can see that Mount Doom has burst into flame again. Realising that Sauron is on the move, Gandalf rides to Minas Tirith, the capital city of Gondor. He later inspects the old scrolls on the ring of power, left over by Isildur, and deduces that Frodo's ring is the One Ring. He returns to the shire in haste, much to Frodo's surprise. He immediately throws the ring into the fire. Once he removes it, he hands it back to Frodo and asks him if he can see anything upon the band. Frodo confirms that there is fiery writing upon the ring. Gandalf reveals the sinister writing is "One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them".
He tells Frodo of Sauron and the rings of power, and how it was taken by Isildur when Sauron fell. Frodo remembers that Gollum possessed the ring up until Bilbo found it. Gandalf explains that the ring prolonged Bilbo's life, but the evil in Mordor is stirring again as Sauron is preparing to make war. He stresses that Sauron must never find it, for while it endures, Sauron can never be defeated.
Frodo resolves to keep it hidden, but when Gandalf reveals that Sauron has captured Gollum and learned the names "Shire... Baggins", Frodo is alarmed as they will inevitably come to the Shire. He willingly offers Gandalf the ring, but the Wizard recoils, fearing to become a Dark Lord like Sauron in turn. Instead he instructs Frodo to leave immediately. Frodo makes preparations, and Gandalf marvels at the bravery of Hobbits. He suddenly hears an intruder and attacks Sam with his staff. Angry at his eavesdropping, Gandalf tells Sam that as a punishment he is to accompany Frodo on his quest. After warning Frodo that the ring has a will of its own and is trying to get back to Sauron, he departs towards Isengard.
Gandalf arrives at Isengard to consult with Saruman. Gandalf reveals that the One Ring has been found and it is in the Shire. Saruman is surprised by this news, as he reveals to Gandalf that Sauron has regained much of his old strength, although he still lacks a physical form without the One Ring. Gandalf is suspicious as to how Saruman knows so much, whereupon the latter reveals that he has been using the Palantir, the seeing stone of Orthanc. Gandalf cautions against this, as other minds may be using the other stones.
At last Saruman reveals that the Nazgul are abroad and riding for the Shire. Gandalf makes to leave, but Saruman magically barrs the way and reveals that it is useless to oppose Sauron now. He urges Gandalf to join him and Sauron together instead. Horrified at this treachery, Gandalf scorns Saruman for abandoning his wisdom. Saruman is angered and uses his power to launch Gandalf against a wall. Gandalf becomes angry in turn and uses his own power throw Saruman on his back, bash his head against a wall and throw him through the office doors. In the end Saruman uses his power to steal Gandalf's staff, using both staves to send Gandalf flying up to the roof of Orthanc, where the Wizard is rendered unconscious.
When Gandalf recovers, he finds himself trapped on the roof of the tower where there is no exit. Gandalf is able to communicate with a small moth, asking it to find Gwaihir, the Giant Eagle. After a while, Saruman tries once more to coerce Gandalf to join his side, but Gandalf states that only Sauron can wield the ring and will not share any of his power. Gandalf then jumps off the tower and lands on the giant eagle, Gwaihir, who takes him to Rivendell. Upon arriving in Rivendell, Gandalf immediately reveals Saruman's treachery to Lord Elrond.
Gandalf is waiting for Frodo as the hobbit recovers from his Morgul wound. Frodo inquires as to why Gandalf did not meet them at Bree. Gandalf only confesses that he was delayed, but says no more on the matter. He and Elrond converse later. Elrond sees Frodo's potential as a suitable ring bearer, while Gandalf feels that Frodo has suffered enough. But Elrond counters that Sauron is now watching Rivendell and marshaling his forces. Elrond also notes that with Saruman's treachery, they cannot conceal the ring indefinitely. Gandalf believes that Men must ultimately take charge, and they must unite under Aragorn, the last remaining heir from the House of Isildur.
At the Council of Elrond, Gandalf is forced to stop Boromir from taking the ring. Gandalf frightens everyone by uttering the black speech of Mordor, the very words written on the ring. He agrees that the ring cannot be used as a weapon, as its corruptive influence will only turn the user into a dark entity like Sauron. Before long the council descends into quarreling. Gandalf himself rises up to reprimand Boromir again. Only when Frodo announces that he will bear the ring does the rowing end. Resigned and moved by the Hobbit's bravery, Gandalf declares that he will help Frodo for as long as is the ring bearer. He is also pleased when Aragorn joins the fray, exchanging glances with Elrond. They are soon joined by Legolas, Gimli, Boromir and Sam. When Merry and Pippin interrupt the council and announce their intention to join, Gandalf is very amused by Pippin's claim of the company needing "intelligence". An elated Elrond declares them as the Fellowship of the Ring.
Gandalf naturally becomes the leader of the Company due to his long years of experience. He first leads the company south. Gimli voices his interest in passing through Moria, but Gandalf speaks against this as he knows that something dangerous lurks within those mines. After the Fellowship is spied on by a flock of Crebain, Gandalf realises that Saruman is using them to keep a watch on the road ahead. Gandalf resorts to leading them through the mountain pass of Caradhras. But again they are waylaid by a ferocious storm, seemingly influenced by a fell voice.
Gandalf realises that it is Saruman influencing the weather. Gandalf speaks words of command to calm the storm, but Saruman's words sends a bolt of lightning into the mountain, where an avalanche of snow falls on the company. The company debate how to escape, where the topic of Moria is broached again. Saruman reaches out in thought to Gandalf, knowing of what the wizard fears in those mines. Gandalf cedes the matter to Frodo to decide as the ring bearer. Subsequently, Frodo chooses to go to the mines.
Gandalf later consults with Frodo, warning him that there are many powers in this world. He also warns him that danger lurks within the company itself, namely Boromir. At the gates of Moria, Gandalf discovers the Dwarven doors with the Ithildun runes. Gandalf initially cannot understand the riddle as he attempts to find the right password to open the doors. Frodo however believes that the answer may be the Elvish word for "friend". Gandalf speaks the word aloud and the doors open instantly.
The company is soon attacked by the Watcher in the Water. The ensuing scuffle leaves the company trapped within the Mines. Gandalf lights his staff and warns the others that there are greater perils lying within the mines. Initially he finds his way, but upon reaching a passage with three alternate routes, Gandalf has no recollection of this.
As they take a break, Frodo notices Gollum following them through the tunnels and Gandalf reveals that he has been following them for some time. The wizard advises Frodo that Gollum may have a part to play in this whole affair, and that good fate is with Frodo as Bilbo was meant to find the ring.
Gandalf then decides on the far right passage, as the air is less foul. The company enter into a colossal hallway, which the wizard identifies as the city of Dwarrowdelf. Upon entering the Tomb of Balin, Gandalf finds the book of Mazarbul and begins to read through its sinister accounts. He is startled and annoyed when Pippin sends a rotting carcass down a well. Calling him "Fool of a Took!" Gandalf and the others prepare to fight as a legion of Moria Goblins and Orcs close in on the tomb.
They bar the door and ready their weapons but the door is still forced open and Gandalf fights alongside the others. No-one reaches Frodo in time to save him from the Cave Troll that attacks him, but Bilbo's Mithril Coat protects him. In a joint effort, Gandalf and Legolas are the only ones left to stand against the Cave Troll before they manage to bring it down. After finding Frodo is unhurt, Gandalf remarks on Frodo's unpredictability. With more orcs approaching, Gandalf urges the Fellowship to head for the Bridge of Khazad-Dum.
The Wizard leads the company through the great hall, however they are soon surrounded by thousands of Goblins. The Goblins are suddenly scared away by an infernal rumbling and a fiery light. Gandalf deduces that it is a Balrog, a fire demon of the ancient world. Abruptly, Gandalf urges everyone to run. At the stairs of Khazad-Dum, a gap in the viaduct makes for a perilous crossing. The Wizard safely jumps across with everyone else. Gandalf leads the company to the bridge of Khazad-dum and is pursued by Durin's Bane - the Balrog. Gandalf is the last to cross the bridge before he turns to face the creature.
The Wizard declares his power as the Wielder of the Flame of Anor. He conjures a shield of white flames as the Balrog attempts to strike him with a giant flaming sword. The sword breaks on impact with the shield and the Balrog recoils. Gandalf again commands it to go back to the Shadow. The Balrog draws out a fiery whip in response. Gandalf raises his staff and shouts "You shall not pass!" before he strikes the bridge, using his power to break the ancient stone.
The Balrog sets foot upon the bridge and it collapses, sending the beast into the abyss. But Gandalf is dragged into the abyss by the whip. Unable to recover, Gandalf tells the fellowship to flee and falls from the bridge.
== Between Fellowship and The Two Towers ==
Gandalf falls and catches up to his sword, grabbing it. He lands on the Balrog and attempts to destroy him, stabbing the Balrog with enough force to break through its hard skin. This leaves a gaping wound in the creature's chest. In retaliation the Balrog continues to swat him away. After falling for a few minutes, they both land in the subterranean lake at the bottom of the mountain. The Grey Wizard fights Durin's Bane through the hidden tunnels in Moria and pursues him all the way to the mountain peak of Zirakzigil.
In their last struggle, Gandalf conjures a fierce storm to aid him. At the last, Gandalf summons a bolt of lightning to his sword and uses the stored energy to strike the Balrog's chest wound. The Balrog falls from the peak and crashes down the mountain side. Gandalf however remains sprawled on the peak and his spirit passes away. As a Maia, his spirit ascends into the heavens.
Gandalf's mission was incomplete, so the great powers sent his spirit back into the world with more power. He returned with a new identity - Gandalf the White, replacing Saruman's rank as head of order. With much of his original power restored, Gandalf was rescued by Gwaihir and brought to Lothlorien. After receiving gifts from Galadriel, he went after the Fellowship.
== The Lord of the Rings: The Two Towers ==
The Wizard enters into the Forest of Fangorn. He later encounters Treebeard, along with a captured Merry and Pippin, and assures the Ent that they are not Orcs. He later met Aragorn, Gimli and Legolas while they were searching for the Hobbits. Legolas was the first to sense Gandalf watching them, but the Elf mistook him for Saruman. The companions turn against him, but Gandalf overpowers them. Hidden in an aura of light he destroys Gimli's axe, knocks away Legolas' arrow and burns Aragorn's sword from his grasp. Aragorn demands to know who he is.
Gandalf then reveals himself to his companions, who are filled with wonder and joy at his return. Gandalf briefly recounts his fight with the Balrog and ultimately how his spirit has been sent back. Aragorn seemingly reminds him of his name (Gandalf), which the wizard appears to have forgotten as he is usually known by Mithrandir. He declares himself as the White Wizard and that the tide is turning. Gandalf speculates that Merry and Pippin's coming to the forest will stir up the Ents against Saruman. Gandalf then calls Shadowfax - the greatest of all horses. He reveals that war is coming to Rohan and they must aid King Theoden.
On their way to Edoras, Gandalf ponders the allegiance between Sauron and Saruman. Aragorn notifies him that Sam has gone with Frodo, much to Gandalf's relief. Arriving at Edoras, Gandalf and the others are ordered to surrender their weapons before entering. Gandalf only manages to bring his staff in by emphasising its use as a walking stick. Entering the Golden Hall of Meduseld, they perceive that King Theoden is suffering from the sickness that Saruman and Wormtongue have set on him.
Wormtongue greets them with cold words, but Gandalf sharply rebukes him and threatens him with the staff. Wormtongue sets his thugs on the companions but they are knocked out by Aragorn, Legolas and Gimli. Gandalf commands Theoden to listen to him, but under Saruman's possession he refuses. Gandalf then casts off his cloak, revealing himself as the White Wizard. He launches a magical attack against the King, repeatedly slamming him against the throne and demanding Saruman to release him. When Saruman tries to resist, Gandalf unleashes all of his power and breaks the spell; miles away, Saruman is violently thrown to the ground and left bleeding.
Theoden regains his normal semblance and his strength returns. He is glad to see Gandalf again, but the King soon learns of what has happened in his "absence". With his son Theodred dead, Theoden is grief stricken to have missed this news while possessed. Taking pity on the King, Gandalf assures Theoden that his son's death was not his fault. Gandalf then notices refuges arriving at Edoras. Gandalf and the King learn of the wild men and the Uruk-Hai laying waste to the Westfold. Gandalf counsels Theoden to fight back swiftly, but the King is loathe to do so with so few men at his command.
Knowing that Eomer and 3000 Rohirrim have been banished by Wormtongue, Gandalf resolves to find them while the King withdraws his people to Helm's Deep. Before he leaves, he confides in Aragorn that Theoden will not be safe at Helm's Deep and that he must defend Rohan at all costs. Aragorn promises to do so and Gandalf assures him that he will return in five days with Eomer's men. After this Gandalf departs with Shadowfax to find the Rohirrim.
During the battle of the Hornburg, Gandalf arrives with Eomer and the combined forces defeat the remaining Uruk-hai. Thanks to their timely arrival, Theoden claims victory at Helm's Deep. Gandalf and his allies watch Mordor from afar. The Wizard predicts that very soon Sauron will be launching his own assault against all of Middle-Earth. The Wizard still has one shred of hope left; Frodo and Sam.
== The Lord of the Rings: The Return of the King ==
Gandalf, Legolas, Gimli, Theoden , Aragorn and Eomer ride to Isengard to confront Saruman. First they are greeted by an inebriated Merry and Pippin, before they are met by Treebeard. The Ent tells Gandalf that Saruman is still trapped in the tower of Orthanc. Gandalf cautions his companions as he knows that Saruman is still dangerous, but he intends to find out what he can from the rouge Wizard. Without much prompting, Saruman reveals himself on the roof of Orthanc, 500 feet above them. Saruman first puts on a false pretense of peace for Theoden, who sharply rebukes him.
Gandalf upbraids Saruman for his treachery and demands information. Saruman reveals the palantir and taunts them with Sauron's imminent attack. In turn, Saruman questions Gandalf's intention to set up Aragorn as the King of Gondor. Saruman goes further, suggesting that Gandalf is cold, musing on how he convinced a mere Hobbit to take on such a hopeless quest. Gandalf is visibly disturbed by the reminder, but he brushes it off and commands Saruman to come down, promising him of no harm.
Saruman scorns his mercy and casts a fireball from the tower. The fireball lands on Gandalf, but the wizard dissolves the flames without moving an inch, much to Saruman's surprise. Gandalf then says "Saruman, your staff is broken!" Saruman's staff burns with white flames and explodes, rendering the furious Wizard powerless. When a disagreement breaks out between Saruman, Grima and Theoden, Gandalf attempts to question Saruman again, but Saruman is suddenly stabbed by Wormtongue. The Wizard falls from the tower and lands on a spiked millwheel. Gandalf instructs Theoden to send out word of the imminent attack from Sauron.
The Palantir falls from Saruman's voluminous sleeve into the water. Pippin sees it glowing and goes to retrieve it. Pippin is fascinated by the artifact, but Gandalf immediately takes it from him, knowing of its danger.
Back in Edoras, Gandalf is still disturbed by the reminder of Frodo, as he has begun to doubt that Frodo is alive at all. But Aragorn asks him outright what he truly feels. After a moment Gandalf confesses that, in his heart, he does believe that Frodo is alive. While the Wizard is resting, Pippin sneaks the Palantir from Gandalf and starts to look at it. But through the seeing stone, Pippin comes face to face with Sauron himself. The Dark Lord mistakes Pippin as the ring bearer and tortures his mind. Aragorn runs in and wrests the palantir from him but Sauron's power overwhelms him too. The commotion arouses Gandalf, who quickly throws a blanket over the stone and scolds Pippin.
Gandalf spiritually heals the shell shocked hobbit. When Pippin comes to, Gandalf demands him to reveal what he saw. Pippin confesses he saw a dead tree in midst of a burning city. From this description, the White Wizard deduces it as Minas Tirith. Pippin also confesses that he saw Sauron himself, but he told him nothing of Frodo and the Ring.
Gandalf and the others take counsel the next morning. Through Pippin's vision, Gandalf has deduced that Sauron is planning an imminent attack on Gondor. Gandalf has a plan of his own, noting that there is still strength to oppose Sauron. First he instructs Theoden to prepare for war and cryptically warns Aragorn to beware of the Black Ships coming from the South. Though he does not openly state it, Gandalf clearly intends for Aragorn to take the Paths of the Dead and summon the Oathbreakers. Gandalf then departs for Minas Tirith, taking Pippin with him.
Gandalf and Pippin arrive at Minas Tirith and go immediately to see Denethor. Gandalf reveals that the white tree is the symbol of the Kings, however he also relays to Pippin that Denethor is only the Steward, as the King has long been absent. He cautions Pippin against speaking about Boromir, Frodo, Aragorn or just about anything. Entering into the citadel, Gandalf greets Denethor and announces that he has tidings. Slow to respond, Denethor reveals Boromir's broken horn in his lap, having learned of his son's death. He asks if Gandalf knows what happened, although the Wizard is reluctant to elaborate on such a sensitive topic. Pippin breaks his silence and gives a short account of what happened. Although Gandalf strongly disapproves, Pippin swears himself to the Steward in honour of Boromir's sacrifice.
Impatient, Gandalf brushes Pippin to one side and tells Denethor of the imminent attack on his lands. He also becomes skeptical, noting that Gondor's armies seem to be lacking. After he instructs Denethor to call for aid from Rohan, the Steward slowly becomes hostile, knowing that Aragorn rides with Theoden. Denethor is openly scornful of Aragorn, claiming his house has long since lost any semblance of lordship. Gandalf sternly reminds him that he has no right to deny the return of the King as he is a mere Steward. Annoyed, Denethor declares that Gondor belongs to him.
Exasperated, Gandalf storms out of the throne room. He gives a brief account to Pippin of Gondor's decline and how it has been a King-less state for many years. Pippin notices Mordor and the storm clouds brewing. Gandalf perceives that it is actually Sauron sending forth a plume of clouds to cover the sun for the Orcs. At night time, Pippin asks Gandalf if there is still hope for Frodo and Sam. Gandalf confides that there is only a fool's hope.
The Wizard speculates on the imminent threat from Mordor, knowing that Sauron has gathered his full strength. He knows that not only Orcs are coming, but evil Men from the south, including the Haradrim and the Corsairs of Umbar. Pippin remains optimistic, reminding Gandalf that he is the White Wizard after all. However Gandalf believes that he may have found his equal. He speaks to Pippin of the Witch-King of Angmar, the deadly Nazgul sorcerer who stabbed Frodo on Weathertop.
While they are speaking, Minas Morgul sends a plume of flames into the sky as a signal of war, intending to terrify Mordor's enemies. Gandalf and Pippin see the light from Minas Tirtih. The Wizard realises that war has begun. Immediately, he enlists Pippin to climb up to the war beacon above the city and light it, regardless of Denethor's intransigence. Pippin successfully lights the beacon and an elated Gandalf sees the beacons light up along the mountain ranges. Gandalf begins to feel hope again, knowing that Rohan will answer the call.
After the fall of Osgiliath, Faramir and his company retreat to Minas Tirith. They are subsequently attacked by the Witch-King and two other Nazgul on their fell beasts. Gandalf rides forth to aid them, to the wonder of the Gondorians. Once close enough Gandalf reveals his power, shining a blinding light from his staff. The Nazgul, whose vision and power is severely weakened by light, are terrified and retreat immediately. Faramir and his company safely reach Minas Tirtih, where Faramir reveals to the wizard that Osgiliath has been overrun.
Gandalf notices Faramir eyeing Pippin very closely, deducing that Faramir must have seen a hobbit before. Faramir confirms that he has seen Frodo and Sam two days ago, much to Gandalf's delight. But the Wizard is alarmed to hear that Frodo is headed for Minas Morgul and the pass of Critih Ungol. Knowing that a dark terror dwells up in the mountains, Gandalf fears the worst.
Gandalf later learns that Denethor, in his madness, has ordered Faramir to retake Osgiliath. Knowing the mission is suicide, the Wizard pleads with Faramir not to throw away his life. Sadly Faramir is too distraught and continues with his mission. Gandalf does not watch the massacre that follows. Instead he takes a moment to sit quietly in a secluded courtyard, overcome with sorrow.
The Wizard reappears in the story when at last Mordor's armies encompass Minas Tirith. Faramir's body is somehow recovered and brought before Denethor. The Steward, already on the brink of despair, abruptly panics and orders everyone to run for their lives. Disgusted, Gandalf beats Denethor with his staff, rendering him unconscious. Gandalf assumes leadership of Gondor's army and orders the Soldiers to return to their posts. Gandalf rides to the outer wall of the city to oversee the battle. Under Gandalf's command, the Gondorians launch their trebuchets and destroy some of the siege towers and catapults. The Nazgul soon descend on the city, but Gandalf orders the Gondorians to stand firm.
When at last some of the siege towers reach the wall, Orcs pour onto the rampart. Gandalf then spots Pippin in the midst of the fighting and orders him back to the Citadel. Gandalf then sees Orcs coming to attack Pippin. The wizard intervenes, brutally killing a number of Orcs all at once. When Gandalf's back is turned, one Orc looms up to him but Pippin stabs it in time. Gandalf turns and is shaken to see it there, but he turns to Pippin and compliments him as a true Guard of the Citadel.
From the rampart, the Wizard sees Sauron's mighty battering ram, Grond, the Hammer of the Underworld. Knowing the gates of the city wont hold, Gandalf leads the soldiers to the courtyard of Minas Tirith. Grond breaks through the gates and several Mountain Trolls burst in. The Gondorians manage to shoot one down. Orcs swarm into the city, leading to a brutal fight in the courtyard. Gandalf manages to kill one of the Mountain Trolls by riding up to one and cutting its throat. The siege worsens and the Gondorians are forced to retreat one level at a time. Gandalf orders them to fight for their lives, just as horns sound out from beyond the city. With renewed hope Gandalf realises that Rohan has come.
The Orcs are forced to pull back from the City, which provides some relief for Gondor. Pippin races to Gandalf, having learned that Denethor plans to build a pyre and burn himself and Faramir on it. Gandalf takes Pippin and rides to the Tomb of the Stewards. Storming into the chamber, Gandalf commands Denethor to stop, but the crazed Steward defies him by throwing a torch onto the pyre. In retaliation Gandalf grabs a spear and knocks Denethor off the Pyre. Pippin manages to pull Faramir off the pyre too, but Denethor attacks him. Enraged, Gandalf urges Shadowfax to kick the Steward into the flames. As Denethor perishes and runs from the chamber, Gandalf sorrowfully proclaims Denethor's ending.
The orcs begin to swarm the city again. At one of the upper levels, Gandalf, Pippin and the remaining Gondorians prepare to make their last stand. Pippin dreads the end, however Gandalf comforts him as this is not the end. Death is merely the first step towards a new life in the blessed realm across the sea, where all spirits journey to. Gandalf describes them as "White shores... and beyond. A far green country, under a swift sunrise". Enlightened, Pippin no longer feels afraid. Fortunately the siege is broken when Aragorn arrives with the Army of the Dead, having followed Gandalf's hint with overtaking the Black Ships.
Gandalf is relieved to see Aragorn has acknowledged his destiny as the Heir of Elendil. Yet with his foresight, he knows that Sauron has only suffered a mere setback at best. He sees now that 10,000 orcs still lurk within Mordor, directly in the path of Frodo and Sam. Aragorn suggests that they march on the Black Gate in order to draw them away, in a last bid to clear the way for Frodo. Gandalf expresses doubt that Sauron will take the bait, however Aragorn taunts Sauron through the Palantir, convincing the Dark Lord to strike.
Gandalf rides with the Captains of the West to the Black Gate. Once there, they are greeted by the Mouth of Sauron. Gandalf orders that Sauron must depart Middle-Earth forever, yet the Mouth of Sauron is only amused. The foul lieutenant reveals Frodo's Mithril vest to Gandalf, to the dismay of the Wizard. He believes that Frodo must be dead or worse, but Aragorn beheads the Mouth of Sauron in disgust.
All of Mordor's army is unleashed, surrounding the small army of the West. Aragorn becomes entranced by the glare from the Eye of Sauron. He turns to Gandalf, who is still holding Frodo's Mithril Vest and says "For Frodo". Aragorn then charges, followed closely by the Hobbits. Gandalf and everyone else charges after them. The Wizard furiously cuts down as many orcs as he can. It is then revealed that Gandalf has communicated with the moth before the battle commenced; when the moth returns, it brings with it an army of Giant Eagles. The Eagles kill some of the Nazgul and their Fell Beasts.
At last the ring is destroyed and the Eye of Sauron screeches to the heavens. Gandalf watches in amazement as Barad-Dur collapses and the Eye explodes. Gandalf is moved to joy, but later he becomes sorrowful when he sees Mount Doom erupt. After the Battle, Gandalf rides atop Gwaihir to find Frodo and Sam.
When Frodo awakens in Minas Tirith, he is astonished to find Gandalf standing before him. Lost for words, the two of them burst into laughter. One by one the Fellowship are reunited.
Gandalf attends the coronation of king Elessar, where he is given the honour of placing the Crown upon Aragorn's head. The Wizard proudly heralds the days of the King and gives his blessing. He later witnesses Aragorn's wedding with Arwen.
With his task now completed, Gandalf accompanies the Hobbits to the Grey Havens. There the Wizard sadly announces that he is returning to his home land forever and declares the Fellowship has ended. The hobbits, especially Pippin, are sad to hear he is leaving. But he comforts them, acknowledging that their tears are not in vain. Gandalf then calls for Frodo to join him. Frodo sadly says farewell to his friends and joins Gandalf on the last ship to leave Middle-Earth. Together, Gandalf and the Hobbits sail into the West, back to the Undying Lands.
== Personality ==
Gandalf was considered to be wise, meddlesome, brave, hurtful, vengeful, bad tempered, but also friendly, befriending almost every man, dwarf, elf and hobbit.
As the white wizard, Gandalf's personality changed, however, he remained very grandfatherly and wise to younger figures. Gimli said Gandalf the White is grumpier than Gandalf the Grey Like all other wizards, while it is easy to make Gandalf laugh, it is also easy to make him furious. When Denethor had discredits Aragorn, Gandalf grew furious and instantly had a strong dislike for the Lord of Gondor. As both grey and white wizard, Gandalf was easily frustrated with Merry and Pippin’s shenanigans once in a while and also with Thorin being too stubborn to seek help from the other elves. He became frustrated when Pippin once asked what Gandalf would do if he could not get the door open, furiously stating he would use the Hobbit's head to bash it open, but quickly had calmed down when he saw Pippin's facial expression.
Gandalf was known to be a very trustful of his friends and allies, putting his trust is put in Bilbo as being the "calming influence" on the Hot-tempered Thorin Oakenshield and his skill of finding his courage. Gandalf also entrusted the One Ring to Frodo and knew he would keep it safe in Bag End.
He also entrusted Aragorn to lead and look after the Fellowship to the bridge while taking Legolas’ advice that their were orcs coming from the north. Gandalf had entrusted Pippin to light the beacons for the signal for their friends and allies in Rohan and believing him that Denethor was going to burn both of them alive. However, his trust was a fatal flaw, as he thought he could trust Saruman, but turned out to be wrong when he learned Saruman had been a traitor. 
The former Istari was protective of those he loves and cares about.He would not have Bilbo go back to the Lonely Mountain because he knows Thorin would kill Bilbo if he found out who gave the Arkenstone to Bard and Thranduil.He would not allow Bilbo to go to Ravenhill in fear the Orcs would kill him. The wizard appears to be protective of the younger members of the Fellowship of the Ring and even protected the Fellowship from the Balrog. He later left Treebeard in charge of protecting Merry and Pippin Gandalf also worried Sauron would search for Pippin and torture him in Mordor, so he took him for safe keeping. The grey and white wizard is a caring person towards to his friends and allies, and most people knew to never make an enemy out of Gandalf. He was angry when Denethor discredited the return of the king. Later, Sauron destroys Thrain, Gandalf grew furious and is motivated to destroy Sauron (before Gandalf gets captured and his staff got destroyed). When Frodo is threatened by the Nazgûl, Gandalf wanted to follow them.
Being a very cunning and was considered the most meddlesome wizard, Gandalf still meant well in his actions. He conjured up Thorin and company to destroy Smaug and rebuild Middle earth's strength in the east and had the dwarves escape while he distracted the white council.
Both as the grey wizard and the white one, he was said to be quite powerful by other races. Saruman even feared that Gandalf was more powerful than he was, and even defeated a Balrog single-handedly. Returning as the white wizard, he survived Saruman's blow when he was on Shadowfax and put a protection spell around both of them and let the fire surround them However, Gandalf was not able to stand up against the Witch-king nor Sauron.