The Lord of the Rings: The Return of the King is a 2003 fantasy adventure film directed by Peter Jackson that is based on the second and third volumes of J. R. R. Tolkien's The Lord of the Rings and the concluding film in The Lord of the Rings film trilogy following The Fellowship of the Ring (2001) and The Two Towers (2002).
As Sauron launches the final stages of his conquest of Middle-earth, Gandalf the Wizard, and Théoden King of Rohan rally their forces to help defend Gondor's capital Minas Tirith from the looming threat. Aragorn finally claims the throne of Gondor and summons an army of ghosts to help him defeat Sauron. Ultimately, even with full strength of arms, they realize they cannot win; so it comes down to the Hobbits, Frodo and Sam, who face the burden of the Ring and the treachery of Gollum, and finally arrive at Mordor, seeking to destroy the One Ring in Mount Doom. (...)
Meanwhile Elrond arrives at the weapon-take of Dunharrow and reveals himself to Aragorn. He presents Aragorn with his birthright - the newly forged Andúril, Flame of the West. He urges Aragorn to use this sword, forged from the shards of Narsil, to recall the Dead Men of Dunharrow and use their allegiance to the heir of Isildur (i.e. Aragorn) to stop the attack of the Corsairs ships from the south. Aragorn accepts this counsel and rides off that very night into the Dimholt, along with Legolas and Gimli.