After a thousand years, Nightmare Moon had regained enough strength in the magically inert environment of the moon to break the seal that had kept her there. Then, she had returned to Equus and took advantage of Celestia’s state to send her to the Sun.