The climax: The X-Men, along with their allies, confront Sebastian Shaw and his team of mutant villains in a final showdown aboard a nuclear submarine. Erik Lehnsherr (Magneto) initially seeks revenge for the atrocities committed against mutants, threatening to use the submarine's nuclear missiles to destroy the world.
The turning point: Charles Xavier (Professor X) intervenes, appealing to Erik's humanity and reminding him that their true goal is to protect mutants, not destroy humanity. This moment of connection between the two friends turns the tide of the battle.
The victory: The X-Men, with the help of Moira MacTaggert, manage to disarm the missiles and defeat Shaw and his team.
The bittersweet ending: While they have secured a temporary victory, the film ends on a melancholic note:
* Erik's betrayal: Erik, despite being swayed by Charles' words, still feels deeply wounded by the persecution of mutants and walks away to begin his own path, suggesting a potential future conflict with Charles and the X-Men.
* Charles' guilt: Charles is left heartbroken by Erik's departure and carries the burden of his own guilt over the tragedy of the Cuban Missile Crisis, which he unknowingly helped to avert, but at the cost of thousands of lives.
* A new era begins: The film ends with the formation of the X-Men as a team dedicated to protecting both humans and mutants, but with a sense of uncertainty about the future and the potential threat posed by Erik Lehnsherr's growing resentment.
The ending leaves a lingering question: Will Erik and Charles remain on opposing sides, or will they find a way to bridge their differences? This question sets the stage for the future of the X-Men franchise.