Legion is coming to a close.


The Marvel TV series will end with its third season in June, FX announced Monday at the Television Critics Association's winter press tour.


Creator Noah Hawley had always envisioned Legion as a three-season arc, FX CEO John Landgraf said, and he's planning to stick to that plan.


"I think endings are what give stories meaning," Hawley told reporters hours later during his final stop at TCA for Legion. "I always thought about this as a complete story, and it felt like three acts of a story."


"What the show is following is this cycle of mental illness. We met David [Dan Stevens] who had been at his lowest point and tried to kill himself, then he meets Syd [Rachel Keller] and he gets balanced out. He's on his meds. He gets out and everything's going great for a while, and he thinks maybe I don't need these meds. He goes off meds the and spirals down, which is where we find him now," Hawley said. "The question now is can he get back to some kind of good place, or is he gone for good? Once we tell that story it feels like we'd be going back to the beginning of the cycle."


In inching closer to its X-Men endgame, Hawley revealed Game of Thrones grad Harry Lloyd will take on the role of David's father — the iconic character of Professor X — while Stephanie Corneliussen (Mr. Robot) will play David's mother, Gabrielle.


Legion, based on an offshoot of the X-Men franchise that debuted as a comic in 1985, centers on David Haller (Stevens), whose history of psychiatric issues lead to his discovery that he has mutant powers. Along with Keller, Aubrey Plaza, Bill Irwin, Amber Midthunder, Jeremie Harris, Jean Smart, Jemaine Clement, Katie Aselton, Navid Negahban and Hamish Linklater also star. Hawley (Fargo) executive produces with Simon Kinberg, Lauren Shuler Donner, Jeph Loeb and John Cameron.


The second season of Legion suffered sizable ratings declines, with same-day viewership falling by more than half to 430,000. A week of delayed viewing brought the series up to about 1 million viewers, but that's still about half of the seven-day number for the first season.


The announcement of Legion ending comes on the heels of FX picking up another comic-based series: The cabler's adaptation of Y: The Last Man is set to debut in 2020.


Marvel TV's scripted roster now includes Netflix's Jessica Jones and The Punisher, Fox's The Gifted, Hulu's The Runaways, Freeform's Cloak and Dagger and several feature film TV spinoffs for the forthcoming Disney+ direct to consumer platform.