Spider-Man 3 is a 2007 American superhero film based on the fictional Marvel Comics comic book series The Amazing Spider-Man. It was directed by Sam Raimi from a screenplay by Raimi, Ivan Raimi and Alvin Sargent. It is the final film in Raimi's original Spider-Man film trilogy, following Spider-Man (2002) and Spider-Man 2 (2004). The film stars Tobey Maguire, Kirsten Dunst, James Franco, Thomas Haden Church, Topher Grace, Bryce Dallas Howard, Rosemary Harris, J. K. Simmons, James Cromwell, and Cliff Robertson in his final acting appearance before his death in 2011. Following the events of Spider-Man 2, Peter Parker has become a cultural phenomenon as Spider-Man, while Mary Jane "M. J. " Watson continues her Broadway career. Harry Osborn still seeks vengeance for his father's death, and an escaped Flint Marko falls into a particle accelerator and is transformed into a shape-shifting sand manipulator. An extraterrestrial symbiote crashes to Earth and bonds with Peter, influencing his behavior for the worse.