Spider-Man is a 2002 American superhero film directed by Sam Raimi. Based on the 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 super 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". Directors Roland Emmerich, Tim Burton, Chris Columbus, and David Fincher were considered to direct the project before Raimi was hired as director in 2000. The Koepp script was rewritten by Scott Rosenberg during preproduction and received a dialogue polish from Alvin Sargent during production.