In 2007, Spider-Man 4 entered development, with Raimi attached to direct and Maguire, Dunst and other cast members set to reprise their roles. Both a fourth and a fifth movie were planned and at one time the idea of shooting the two sequels concurrently was under consideration. However, Raimi stated in March 2009 that only the fourth film was in development at that time and that if there were fifth and sixth films, those two films would actually be a continuation of each other.[28][29][30][31] James Vanderbilt was hired in October 2007 to pen the screenplay after initial reports in early 2007 that Sony Pictures was in contact with David Koepp, who wrote the first Spider-Man film.[32][33] The script was subsequently rewritten by Pulitzer-winning playwright David Lindsay-Abaire and rewritten again by Gary Ross in October 2009.[34] Sony also engaged Vanderbilt to write scripts for Spider-Man 5 and Spider-Man 6.[33]
In 2007, Raimi expressed interest in portraying the transformation of Dr. Curt Connors into his villainous alter-ego, the Lizard; the character's actor Dylan Baker and producer Grant Curtis were also enthusiastic about the idea.[35][36][37] Raimi also discussed his desire to upgrade Bruce Campbell from a cameo appearance to a significant role.[38] It was reported in December 2009 that John Malkovich was in negotiations to play Vulture and that Anne Hathaway would play Felicia Hardy, though she would not have transformed into the Black Cat as in the comics. Instead, Raimi's Felicia was expected to become a brand-new superpowered figure called the Vulturess.[39]
Sony Pictures announced in January 2010 that plans for Spider-Man 4 had been cancelled due to Raimi's withdrawal from the project. Raimi reportedly ended his participation due to his doubt that he could meet the planned May 6, 2011 release date while at the same time upholding the film creatively.