<P> In season six, Elena starts back at Whitmore, and is unable to set foot in her hometown . She is also unable to recover from Damon's death and starts lurking the borders of Mystic Falls in order to grab civilians, drink their blood, then compel them to forget, but as spirit magic no longer works in Mystic Falls, any of her victims who cross into the town remember the ordeal, putting her identity as a vampire at risk when one of her victims, Sarah, comes to town . Elena begs Alaric to compel her to forget that she ever loved Damon, which Alaric is able to do, due to him being an Enhanced Original, with the ability to compel other vampires . She eventually wears him down and asks her friends to never remind her once the compulsion had been done . After a number of failed attempts, Alaric successfully compels her to forget her love for Damon . She however leaves Alaric with some of her reminders of Damon, should she ever need them again . She is told of her former feelings for Damon soon afterwards, but decides to stay the way she is, as she doesn't want to go back to being unhappy again . She starts to date her classmate, Liam . Once Damon comes back to life, Alaric tries to convince Elena to allow him to undo the compulsion, a decision she is reluctant to make . She eventually decides to have him undo it, but Alaric goes back to being human again after crossing into Mystic Falls, causing him to lose his vampire status (he only stayed alive because his once fatal human injuries were healed), meaning he will not be able to do so . She is then left to finally come face - to - face with Damon and see if she'll still feel the same way about him . They eventually rekindle their relationship, Elena takes the cure that Bonnie gave Damon . At Alaric's wedding Kai ruins their wedding and casts a sleeping spell on Elena, linking her life to Bonnie's . She makes a sacrifice to let Bonnie live out her life until it is her turn . She bids goodbye to her friends and loved ones before parting ways but knows that she will see Damon, Stefan and Caroline again one day . </P> <P> Elena doesn't make an appearance but is heard calling Damon's name when he visits the Armory vault . It was a way of Sybil, the Siren, luring him into a trap . </P> <P> In the final episode, Elena makes an appearance . When a weakened Bonnie dies from the sounding bell, she meets Elena in a dream - like forest . Elena hugs her and wonders if she really has died . Enzo appears and says it isn't her time and takes Bonnie back to the world of the living . When Bonnie wakes up, it was Stefan who resuscitated her . Elena, asleep, is then taken to the Mystic Falls High School by Katherine and places her in the boiler room . Stefan tries to rescue Elena, but Katherine had Kai spell the boiler room, so that Elena can't be taken out of the room . After Bonnie had deflected the hellfire back into the bell, Bonnie passes out . Elena wakes up and wanders the school . Stefan meets up with her . It looks like Bonnie has died, but in fact Elena is still sleeping and Stefan's ghost came to visit her in her dream . He had taken the place of killing Katherine instead of Damon, since Damon is human after Stefan gave him the cure . He came to say goodbye . After a tearful hug and saying goodbye, Stefan goes into afterlife . Elena finally wakes up because Bonnie has broken the spell over her . Elena reunites with Damon and the rest of the gang . Elena gives Caroline the message Stefan whispered into her ear, saying he did hear her voice message and will love her forever . In the epilogue, Elena continued to study at medical school . After finishing her education, she went back to Mystic Falls and lived together with Damon, happily married for a long time . After living out her life, she crosses over to the afterlife where she finally reunites with her parents, Aunt Jenna and Uncle John . </P> <P> The second - last episode of The Originals,' The Tale of Two Wolves', features Elijah and Hope Mikaelson visiting Mystic Falls, and the window of a doctor's office reads' Elena Salvatore, M.D.', implying that Elena got her own medical practice . </P>

What episode does elena die in vampire diaries