The Hobbit was written by Peter Jackson.
The screenplay was written by Fran Walsh , Philippa Boyens , Jackson , and Guillermo del Toro , who was originally chosen to direct before his departure from the project.
