Ages of Apocalypse was a group of stories that ran in the various X-books. The basic premise of the story was that Apocalypse caused the X-Men to believe they were in various divergent realities so he could siphon power from them.