The X-Men's Age of Apocalypse timeline actually saved the entire Marvel Multiverse. In 1995, Marvel Comics took the bold move of relaunching their entire X-Men line. It was a shocking and unprecedented decision, because at the time the X-Men were literally Marvel's best-sellers. But every single X-Men book came to an abrupt end, replaced by a new title. And readers were welcomed into the ultimate dystopian timeline - the Age of Apocalypse.
This was essentially a "What If?" story, but operating on a grander scale than ever before. Charles Xavier's time traveling son Legion unwittingly changed history for the worse when he killed his own father decades before the X-Men were founded, and consequently the normal Marvel Universe was replaced with a brand new timeline. The absence of Charles Xavier, and the demonstration of Legion's powers, led the insane Apocalypse to step out of the shadows long before any potential opponents had entered the scene. He conquered North America, establishing a mutant empire that became the dominant global power on Earth. Ironically, though, he did not go unopposed; Charles Xavier's death led Magneto himself to commit to Xavier's Dream. In the end, more time travel put history on the right track again, and the Age of Apocalypse timeline was apparently erased.
The Age of Apocalypse was a massive success, and consequently Marvel soon rewrote the temporal mechanics. Rather than erased, the Age of Apocalypse had become a new timeline, one the publisher dipped into every now and again. In 2012 Marvel even launched an ongoing series set in the Age of Apocalypse, written by David Lapham and with art by Bryan Hitch, Dean White, Humberto Ramos, and Roberto De La Torre. This story came to a dramatic conclusion in an event called "X-Termination," in which - incredibly - the Age of Apocalypse became the savior of the entire Marvel multiverse.
Various X-books had been indulging in interdimensional travel for some time, and the dimension-jumpers had unwittingly created a tear in the fabric of the multiverse. This led to the release of monstrous alien beings referred to as the Exterminators, who were able to feed off the essence of creation itself. These creatures were literally unstoppable; just a single Exterminator could destroy an entire dimension, before moving on to the next in order to continue feeding. And there were thousands of them.
In the end, the heroes of the Age of Apocalypse reality - who had long since defeated Apocalypse but had begun to realize they could never build a better world from these ashes - made a fateful decision. They chose to allow the Exterminators entry into their reality, and then plug it off from the rest of the multiverse. In essence, the X-Men's Age of Apocalypse dimension was sacrificed in order to save the rest of creation. And so, in the end, Legion's folly - and the havoc he caused when he killed his father - saved the entire Marvel Universe.