With a show like The Vampire Diaries, which has spread across eight seasons and 171 episodes complete with flashbacks and complicated ancestral lines, it can become hard to keep track of a correct timeline of crucial events. For example, who did Elena Gilbert meet first? Was it Damon Salvatore or his younger brother Stefan Salvatore? The truth is that while it appeared that Stefan came into her life first, it was actually Damon.

Here is how events unfolded and the Damon-Elena love story began before Elena and the viewers even knew it:

RELATED: Ichigo Kurosaki & 9 Other Anime Characters That Can Slay Vampires

When Elena Met Stefan

Elena with Stefan Salvatore in The Vampire Diaries

While many believe that Elena met Stefan for the first time at Mystic Falls High school, as the series progressed, it was revealed that he had already crossed paths with her before. In 2009, when Elena was in a car accident with her parents, it was Stefan who heard the crash near Wickery Bridge while he was in town visiting his nephew, Zach Salvatore. He dived into the water, where Elena’s barely conscious father asked him to help his unresponsive daughter first.

Stefan followed his wishes and saved Elena from drowning, only to be stunned into silence by the striking resemblance she shared with his old flame, the vampire Katherine Pierce. By the time he made it to back to the car, it was too late to save her parents, Grayson Gilbert and Miranda Gilbert. His curiosity to find out more about Elena kept him in Mystic Falls and made him join the school to get to know her better.

RELATED: The Vampire Diaries, Originals Star Swears They'll Never Appear on Legacies

They met on the first day of school, just as Elena was emerging from the men’s room after scolding her younger brother, Jeremy Gilbert, who had turned to drugs to cope with their parents’ death. Distracted, she accidentally bumped into the "new guy," i.e., Stefan Salvatore, not knowing that he had saved her -- at least not until Season 1's Episode 11, “Bloodlines.”

Her First Interaction with Damon Salvatore (Or So She Thought)

Elena Gilbert and Damon Salvatore in The Vampire Diaries

Elean met Damon Salvatore when she came looking for Stefan at the Salvatore Boarding House in Season 1, Episode 2. He intentionally told her about Katherine being a former lover of Stefan's, and stressed that he was still heartbroken over their breakup. As time passed, Elena found herself drawn to the elder Salvatore, but she was conflicted about leaving Stefan. In Season 3, Episode 22, she even told Damon how things would have been different between them had she met him first.

RELATED: X-Men: Every Time Marvel Turned Storm Into a Vampire

It Turns Out, Elena Did Meet Damon Much Before She Met Stefan

Damon and Elena dancing close together by a fireplace in The Vampire Diaries.

In the same episode, a flashback revealed that Damon was also in Mystic Falls the night Elena’s parents died. He met the visibly upset Elena in the middle of the road and approached her, mistaking her for Katherine. Realizing that was not the case, he struck up a conversation with her and even flirted a little as he came to know that she was disconcerted by her then-boyfriend Matt Donovan's plans for marriage and kids.

He told her that he knew what she wanted -- an all-consuming, passionate love that would lead to adventures and a little danger. But as Elena’s parents arrived to pick her up, he compelled her to forget that she had ever met him, as he didn’t want people to be aware of his presence in town.

Since vampiric compulsion tends to wear off when one becomes a vampire, Elena regained her memories of Damon in Season 4, Episode 1 “Growing Pains.” She remembered how he had confessed that he loved her -- as well as the fact that he was the stranger she met on the night of her parent’s death who told that he wanted her to have everything she wished for.

KEEP READING: Legacies Should Introduce Damon Salvatore and Elena Gilbert's Daughter