Spider-Man 3 is a 2007 American superhero film based on the Marvel Comics character Spider-Man. It is the third and final installment in Sam Raimi's Spider-Man trilogy, featuring Tobey Maguire as Peter Parker / Spider-Man and exploring the challenges he faces with new villains, including the shape-shifting Sandman, and the complexities of his personal life.