The Princess of the Night was taken by envy, she turned into Nightmare Moon and tried to create the Eternal Night but was stopped by her sister and banished to the moon. At least that's what tell the books.