X-Men: The Last Stand is a 2006 superhero film, based on the X-Men characters appearing in Marvel Comics. The third installment in the X-Men film series, it was directed by Brett Ratner and stars an ensemble cast including Hugh Jackman, Halle Berry, Patrick Stewart, Ian McKellen, Famke Janssen, Kelsey Grammer, Anna Paquin, Shawn Ashmore, Ellen Page, Aaron Stanford, Vinnie Jones, Rebecca Romijn, and James Marsden. The film's script is loosely based on two X-Men comic book story arcs, The Dark Phoenix Saga by writer Chris Claremont and artist John Byrne, and Gifted by writer Joss Whedon and artist John Cassaday, with a plot that revolves around a "mutant cure" that causes serious repercussions among mutants and humans, and on the mysterious resurrection of Jean Grey.
Filming started in August 2005, budgeted at $210 million, the most expensive film at the time of its release, and had extensive visual effects done by eleven different companies. X-Men: The Last Stand received mixed reviews, but grossed approximately $459 million worldwide, the seventh-highest grossing film of 2006 and the most financially successful of the series.