Celestia managed to free her sister from Nightmare Moon 1000 years ago and thus both sisters were ruling Equestria for all these years, together.
And just like Celestia, Luna also had many students over these years, but one of them was special.
He was her most faithful student.