The Avengers (2012 film) was written by Samuel L. Jackson.
The Avengers (2012 film) . The film was written and directed by Joss Whedon and features an ensemble cast that includes Robert Downey Jr. , Chris Evans , Mark Ruffalo , Chris Hemsworth , Scarlett Johansson , Jeremy Renner , Tom Hiddleston , Clark Gregg , Cobie Smulders , Stellan Skarsgård , and Samuel L. Jackson . Whedon was brought on board in April 2010 and rewrote the original screenplay by Zak Penn. .