Spider-Man 2 is a 2004 American superhero film directed by Sam Raimi and written by Alvin Sargent from a story by Alfred Gough, Miles Millar and Michael Chabon. A sequel to the 2002 film Spider-Man, it is the second installment in the Spider-Man trilogy based on the fictional Marvel Comics character of the same name. Tobey Maguire, Kirsten Dunst, James Franco, Rosemary Harris, and J. K. Simmons reprise their respective roles as Peter Parker/Spider-Man, Mary Jane Watson, Harry Osborn, Aunt May, and J. Jonah Jameson, while Alfred Molina and Donna Murphy join the cast as Otto Octavius/Doctor Octopus and Rosalie Octavius.
Set two years after the events of Spider-Man, the film finds Peter Parker struggling to manage both his personal life and his duties as Spider-Man, while Dr. Otto Octavius becomes a diabolical villain after a failed experiment kills his wife and leaves him neurologically fused to mechanical tentacles. Spider-Man must stop him from successfully recreating the experiment, which threatens to destroy the city.