Set shortly after the Nightmare Rarity arc in the comics.
Nightmare moon believes Twilight is responsible for both of her defeats and has decided to take care of the root of the problem. With the last of her strength she enters Twilight's dreams to claim her revenge.