The Hobbit (film series) was written by Fran Walsh, Philippa Boyens, Jackson, and Guillermo del Toro, who was originally chosen to direct before his departure from the project. The films take place in the fictional world of Middle-earth sixty years before the beginning of "The Lord of the Rings", and follow hobbit Bilbo Baggins (Martin Freeman), who is convinced by the wizard Gandalf the Grey (Ian McKellen) to accompany thirteen dwarves, led by Thorin Oakenshield (Richard Armitage), on a quest to reclaim the Lonely Mountain from the dragon Smaug (voiced by Benedict Cumberbatch). The films also expand upon certain elements from the novel and
The Hobbit work on "The New Hobbit", which would eventually become "The Lord of the Rings", a course that would not only change the context of the original story, but lead to substantial changes to the character of Gollum. In the first edition of "The Hobbit", Gollum willingly bets his magic ring on the outcome of the riddle-game, and he and Bilbo part amicably. In the second edition edits, to reflect the new concept of the One Ring and its corrupting abilities, Tolkien made Gollum more aggressive towards Bilbo and distraught at losing the ring. The encounter ends with Gollum's curse, "Thief!