The following contains spoilers for You Season 4, now streaming on Netflix.

In the X-Men universe, there's a fair share of Omega-Level Mutants, Mutants with powers that could prove to be reality-altering and threaten the world. Some examples include Jean Grey and Iceman who have dominion over particular aspects of reality. However, there's another far more deadly Mutant named David Haller, aka Legion, the son of Professor X who first appeared in New Mutants #26 (by Chris Claremont and Bill Sienkiewicz). With the power to manifest mutations that are then split into alternate personalities, Legion has been a friend and an enemy, but some personalities are more deadly than others, making him both a hero and a villain to the world. In that same aspect, his character has recently been mirrored in the Netflix show, You.

You follows a man named Joe Goldberg, who led a very difficult life that contributed to the slow fracture of his mind throughout the series. While he's a person who has claimed to try and be a good person, he's stuck in an unhealthy habit of stalking those he's gained a romantic interest in. However, being that his definition of love was skewed heavily by his rough childhood, his romantic pursuits often led to the deaths of many. Eventually, the constant mental tug of war over being good or giving in to his dark side split his mind.

RELATED: Sins of Sinister Turns the X-Men's Future into a Much Darker Version of Star Trek

You's Joe Goldberg and the X-Men's Legion Share Difficult Pasts

David Haller aka Legion in Marvel Comics

Joe was born into a family that was far from healthy as his father would often abuse him and his mother, and, in retaliation, Joe's mother would cheat on him. As a result, Joe's father took his anger out on him -- violently forcing him to reveal his mother's secrets. Eventually, the abuse reached a head and Joe killed his dad to protect his mom. From there, he was taken to a home where he began to manifest a need to find a figure to care for. He turned to the orphanage's nurse who he grew close to and tried to help when he learned that she was being abused by her boyfriend. His last struggle came in the form of Mr. Mooney, a bookstore owner and ex-soviet era soldier who used abuse as a teaching strategy. Trapped in a glass cage, Joe could only leave if he learned whatever lesson Mr. Mooney wanted to force on him. The abuse Joe endured throughout his life gave him a desperate need to find love -- no matter what.

Legion was the son of Charles Xavier and Gabrielle Haller. However, he didn't know who his father was right away as he was raised by his mother and stepfather. His mother was an Israeli diplomat in Paris which made her and her family a target. It was this concern that led some assassins to their home and resulted in the death of David's stepfather. This moment caused David's psionic powers to manifest, and he killed the men. David was also able to read their minds as they died which left him traumatized. From that point on, each power he manifested represented a new personality.

RELATED: The X-Men's Beast Has Fully Embraced Being a Villain - But He Has One Last Chance to be a Hero

Legion's Multiple Personalities Mirror Joe Goldberg's

Rhys sitting in an armchair and Kate and Joe facing each other in Netflix's You season 4.

In X-Men: Evolution, two of these personalities were introduced named Ian and Lucas. Ian was a benevolent young boy who represented the scared child within David. However, his pyrokinetic powers made him more dangerous than he appeared. Ian, on the other hand, was far more aggressive and was willing to do anything to gain control. Meanwhile, David, the host personality, just wanted a sense of normalcy. When compared to Joe, the similarities were made even more prevalent after season 4 of You. For starters, there was Joe, the host personality who wanted to stop killing and live a normal life. But as he repressed his dark side, it manifested in the form of Rhys Montrose, a rags-to-riches political candidate in London who Joe obsessed over.

While David and Lucas match Joe and Rhys, Ian is far more unique. Although it's not a complete personality, Joe's childhood self best represents Ian as it showed a young child with immense potential forced to endure a hard life. Ian was mostly confused over the powers he had and the younger version of Joe faced physical challenges in that he had to face threats like his father to protect those he loved. Ironically, both Joe and Legion want to do the right thing. However, no matter how hard they try, their choices and abilities have kept them from living peaceful lives. This shows how even an Omega-Level Mutant can have the same struggles as an ordinary man struggling with his past.