X-Men: First Class is a 2009 superhero film based on the Marvel Comics superhero team the X-Men. Directed by Matthew Vaughn and written by Ashley Edward Miller, Zack Stentz, Jane Goldman and Vaughn, the film stars an ensemble cast led by Patrick Stewart, Ian McKellen, Tye Sheridan, Sophie Turner, Nicholas Hoult, Ben Hardy, Lucas Till, Rebecca Romijn, Ray Park, Aaron Taylor-Johnson, Elizabeth Olsen, Vinnie Jones and Rose Byrne. It is the third film in the Marvel Cinematic Universe (MCU). X-Men: First Class is set primarily in 2002 during the war on terror, and focuses on the relationship between Charles Xavier and Erik Lehnsherr / Magneto, and the origin of their groups—the X-Men and the Brotherhood of Mutants, respectively.