Damon took the cure and Elena become a doctor. In The Vampire Diaries ending we see Damon and Elena have had a long life together full with love. They both find peace in the afterlife. Imagine Elena Gilbert to appear in Legacies Season 3 as a doctor and mother of one of the kids in Salvatore school.