Princess Twilight saw her friends in danger, and she felt like she was to blame. So Twilight decided to make a deal with the storm king. He would leave Equestria alone exchange for her hand in marriage. She also added that he can make her to the pony he wants. The storm king agreed and left Twilights land alone. Only fate can set her free from him.