Spider-Man is a 2002 American superhero film directed by Sam Raimi and written by David Koepp. Based on Marvel Comics character of the same name, the film stars Tobey Maguire as Peter Parker, a high-school student who turns to crimefighting after developing spider-like powers. Spider-Man also stars Willem Dafoe as Norman Osborn (a.k.a. the Green Goblin), Kirsten Dunst as Peter's love interest Mary Jane Watson, and James Franco as his best friend Harry Osborn.
After being stuck in development hell for nearly 25 years, the film was licensed for a worldwide release by Sony Pictures Entertainment in 1999 after it acquired options from MGM on all previous scripts developed by Cannon Films, Carolco and New Cannon. Exercising its option on just two elements from this multi-script acquisition (a screenplay credited to James Cameron, Ted Newsom, John Brancato, Barney Cohen and "Joseph Goldman" (the pen name of Menahem Golan) and a later treatment credited solely to Cameron), Sony hired David Koepp to create a working screenplay from this "Cameron material".