Thousands of years before the events of the novel, the Dark Lord Sauron had forged the One Ring to rule the other Rings of Power and corrupt those who wore them: the leaders of Men, Elves and Dwarves. Sauron was defeated by an alliance of Elves and Men led by Gil-galad and Elendil, respectively. In the final battle, Isildur, son of Elendil, cut the One Ring from Sauron's finger, causing Sauron to lose his physical form. Isildur claimed the Ring as an heirloom for his line, but when he was later ambushed and killed by the Orcs, the Ring was lost in the River Anduin.
Over two thousand years later, the Ring was found by one of the river-folk called Déagol. His friend Sméagol fell under the Ring's influence and strangled Déagol to acquire it. Sméagol was banished and hid under the Misty Mountains. The Ring gave him long life and changed him over hundreds of years into a twisted, corrupted creature called Gollum. Gollum lost the Ring, his "precious", and as told in The Hobbit, Bilbo Baggins found it. Meanwhile, Sauron assumed a new form and took back his old realm of Mordor. When Gollum set out in search of the Ring, he was captured and tortured by Sauron. Sauron learned from Gollum that "Baggins" of the Shire had taken the Ring. Gollum was set loose. Sauron, who needed the Ring to regain his full power, sent forth his powerful servants, the Nazgûl, to seize it.
The Fellowship of the Ring
The story begins in the Shire, where the hobbit Frodo Baggins inherits the Ring from Bilbo Baggins, his cousin[note 3] and guardian. Neither hobbit is aware of the Ring's nature, but Gandalf the Grey, a wizard and an old friend of Bilbo, suspects it to be Sauron's Ring. Seventeen years later, after Gandalf confirms his guess, he tells Frodo the history of the Ring and counsels him to take it away from the Shire. Frodo sets out, accompanied by his gardener, servant and friend, Samwise "Sam" Gamgee, and two cousins, Meriadoc "Merry" Brandybuck and Peregrin "Pippin" Took. They are nearly caught by the Black Riders, but shake off their pursuers by cutting through the Old Forest. There they are aided by Tom Bombadil, a strange and merry fellow who lives with his wife Goldberry in the forest.
The hobbits reach the town of Bree, where they encounter a Ranger named Strider, whom Gandalf had mentioned in a letter. Strider persuades the hobbits to take him on as their guide and protector. Together, they leave Bree after another close escape from the Black Riders. On the hill of Weathertop, they are again attacked by the Black Riders, who wound Frodo with a cursed blade. Strider fights them off and leads the hobbits towards the Elven refuge of Rivendell. Frodo falls deathly ill from the wound. The Black Riders nearly capture him at the Ford of Bruinen, but flood waters summoned by Elrond, master of Rivendell, rise up and overwhelm them.
Frodo recovers in Rivendell under Elrond's care. The Council of Elrond discusses the history of Sauron and the Ring. Strider is revealed to be Aragorn, Isildur's heir. Gandalf reports that Saruman has betrayed them and is now working to become a power in his own right. The Council decides that the Ring must be destroyed, but that can only be done by sending it to the Fire of Mount Doom in Mordor, where it was forged. Frodo takes this task upon himself. Elrond, with the advice of Gandalf, chooses companions for him. The Company of the Ring are nine in number: Frodo, Sam, Merry, Pippin, Aragorn, Gandalf, Gimli the Dwarf, Legolas the Elf, and the Man Boromir, son of Denethor, the Ruling Steward of the land of Gondor.
After a failed attempt to cross the Misty Mountains through the Redhorn Pass, the Company are forced to take a perilous path through the Mines of Moria. They are attacked by the Watcher in the Water before the doors of Moria. Inside Moria, they learn of the fate of Balin and his colony of Dwarves. After surviving an attack, they are pursued by Orcs and by an ancient demon called a Balrog. Gandalf faces the Balrog, and both of them fall into the abyss. The others escape and find refuge in the Elven forest of Lothlórien, where they are counselled by its rulers, Galadriel and Celeborn.
With boats and gifts from Galadriel, the Company travel down the River Anduin to the hill of Amon Hen. There, Boromir tries to take the Ring from Frodo, but Frodo puts it on and disappears. Frodo chooses to go alone to Mordor, but Sam guesses what he intends and goes with him.
The Two Towers
Orcs sent by Saruman and Sauron kill Boromir and capture Merry and Pippin. Aragorn, Gimli and Legolas debate which pair of hobbits to follow. They decide to pursue the Orcs taking Merry and Pippin to Saruman. In the kingdom of Rohan, the Orcs are slain by a company of Rohirrim. Merry and Pippin escape into Fangorn Forest, where they are befriended by Treebeard, the oldest of the tree-like Ents. Aragorn, Gimli and Legolas track the hobbits to Fangorn. There they unexpectedly meet Gandalf. Gandalf explains that he slew the Balrog; darkness took him, but he was sent back to Middle-earth to complete his mission. He is clothed in white and is now Gandalf the White, for he has taken Saruman's place as the chief of the wizards. Gandalf assures his friends that Merry and Pippin are safe. Together they ride to Edoras, capital of Rohan. Gandalf frees Théoden, King of Rohan, from the influence of Saruman's spy Gríma Wormtongue. Théoden musters his fighting strength and rides with his men to the ancient fortress of Helm's Deep, while Gandalf departs to seek help from Treebeard.
Meanwhile, the Ents, roused by Merry and Pippin from their peaceful ways, attack Isengard, Saruman's stronghold, and trap the wizard in the tower of Orthanc. Gandalf convinces Treebeard to send an army of Huorns to Théoden's aid. Gandalf brings an army of Rohirrim to Helm's Deep, and they defeat the Orcs, who flee into the "forest" of Huorns, never to be seen again. Gandalf offers Saruman a chance to turn away from evil. When Saruman refuses to listen, Gandalf strips him of his rank and most of his powers. After Saruman crawls back to his prison, Wormtongue drops a sphere to try and kill Gandalf. Pippin picks it up; it is revealed to be a palantír, a seeing-stone that Saruman used to speak with Sauron and through which Saruman was ensnared. Pippin is seen by Sauron. Gandalf rides for Minas Tirith, chief city of Gondor, taking Pippin with him.
Frodo and Sam capture Gollum, who has followed them from Moria. They force him to guide them to Mordor. They find that the Black Gate of Mordor is too well guarded, so instead they travel to a secret way Gollum knows. On the way, they encounter Faramir, who, unlike his brother Boromir, resists the temptation to seize the Ring. Gollum – who is torn between his loyalty to Frodo and his desire for the Ring – betrays Frodo by leading him to the great spider Shelob in the tunnels of Cirith Ungol. Frodo falls to Shelob's sting. But with the help of Galadriel's gifts, Sam fights off the spider. Believing Frodo to be dead, Sam takes the Ring to continue the quest alone. Orcs find Frodo; Sam overhears them and learns that Frodo is still alive.
The Return of the King
Sauron sends a great army against Gondor. Gandalf arrives at Minas Tirith to warn Denethor of the attack, while Théoden musters the Rohirrim to ride to Gondor's aid. Minas Tirith is besieged. Denethor is deceived by Sauron and falls into despair. He burns himself alive on a pyre, nearly taking his son Faramir with him. Aragorn, accompanied by Legolas, Gimli and the Rangers of the North, takes the Paths of the Dead to recruit the Dead Men of Dunharrow, who are bound by a curse which denies them rest until they fulfil their ancient forsworn oath to fight for the King of Gondor. Following Aragorn, the Army of the Dead strikes terror into the Corsairs of Umbar invading southern Gondor. Aragorn defeats the Corsairs and uses their ships to transport the men of southern Gondor up the Anduin, reaching Minas Tirith just in time to turn the tide of battle. Éowyn, Théoden's niece, slays the Lord of the Nazgûl with help from Merry. Together, Gondor and Rohan defeat Sauron's army in the Battle of the Pelennor Fields, though at great cost. Théoden is slain, and Éowyn and Merry are injured.
Meanwhile, Sam rescues Frodo from the tower of Cirith Ungol. They set out across Mordor. Aragorn leads an army of men from Gondor and Rohan to march on the Black Gate to distract Sauron from his true danger. His army is vastly outnumbered by the great might of Sauron. Frodo and Sam reach the edge of the Cracks of Doom, but Frodo cannot resist the Ring any longer. He claims it for himself and puts it on his finger. Gollum suddenly reappears. He struggles with Frodo and bites off Frodo's finger with the Ring still on it. Celebrating wildly, Gollum loses his footing and falls into the Fire, taking the Ring with him. When the Ring is destroyed, Sauron loses his power forever. All he created collapses, the Nazgûl perish, and his armies are thrown into such disarray that Aragorn's forces emerge victorious.
Aragorn is crowned Elessar, King of Arnor and Gondor, and weds Arwen, daughter of Elrond. The four hobbits make their way back to the Shire, only to find out that it has been taken over by men led by Sharkey. The hobbits raise a rebellion and liberate the Shire, though 19 hobbits are killed and 30 wounded. Sharkey turns out to be Saruman. Frodo stops the hobbits from killing the wizard after Saruman attempts to stab Frodo, but Gríma turns on Saruman and kills him in front of Bag End, Frodo's home. He is slain in turn by hobbit archers, and the War of the Ring comes to its true end on Frodo's very doorstep.
Merry and Pippin are celebrated as heroes. Sam marries Rosie Cotton and uses his gifts from Galadriel to help heal the Shire. But Frodo is still wounded in body and spirit, having borne the Ring for so long. A few years later, in the company of Bilbo and Gandalf, Frodo sails from the Grey Havens west over the Sea to the Undying Lands to find peace.
In the appendices, Sam gives his daughter Elanor the Red Book of Westmarch, which contains the story of Bilbo's adventures and the War of the Ring as witnessed by the hobbits. Sam is then said to have crossed west over the Sea himself, the last of the Ring-bearers.