Timeline A: 2003, Part 2

Shortly after, Rogue has joined the X-Men herself, but an attack by a returned William Stryker—using the mutant powers of his own son Jason to turn the mutant Nightcrawler into an attempted assassin at the White House—on the Xavier Institute sees several X-Men, including Charles, captured. The remaining X-Men team up with Magneto and Mystique to go rescue their friends, and stop Stryker from using Jason’s powers to brainwash Xavier into using his mutant-detecting supercomputer/psychic power amplifier Cerebro to kill every mutant on Earth.
Magneto causes problems on purpose, convincing Jason to try and brainwash Charles into using Cerebro to kill every human instead, fleeing in the chaos, but the X-Men free Charles and escape Stryker’s base during a flood. Stryker dies in the process, as does Jean Grey, who sacrifices herself to hold off the water long enough for her friends to make it out. (X2)