The Hobbit is a trilogy of fantasy adventure films directed by Peter Jackson. The films are subtitled An Unexpected Journey (2012), The Desolation of Smaug (2013), and The Battle of the Five Armies (2014). The films are based on J. R. R. Tolkien's 1937 novel The Hobbit, but much of the trilogy was inspired by the appendices to his 1954–55 The Lord of the Rings, which expand on the story told in The Hobbit. Additional material and new characters were created specially for the films. The series is a prequel to Jackson's The Lord of the Rings film trilogy.
The screenplays were written by Fran Walsh, Philippa Boyens, Jackson, and Guillermo del Toro, who had been 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 (Benedict Cumberbatch). The films expand upon certain elements from the novel and other source material, such as Gandalf's investigation at Dol Guldur which leads him to the Necromancer, and the heroes' pursuit by the orcs Azog and Bolg, who seek vengeance against Thorin and his kindred.