"I didn't just save the world. I made a new one."
Lex Luthor on his life Post-Crisis
"Deus Lex Machina" is the seventeenth episode of the fifth season of Supergirl, and the one-hundred-fourth episode overall. It aired on May 3, 2020.


Lex proceeds to lay an intricate plan to bring Lena closer to him, defeat Leviathan’s latest attack, and pit Supergirl and team against Leviathan. It is also revealed how Lex came into power after Crisis.[src]



Special guest starring

Guest starring




Lex play chess with his mother

Since the Anti-Monitor Crisis and the creation of Earth-Prime, everything that the Superfriends and their allies, like Lena Luthor, have experienced has been a part of Lex Luthor's grand scheme towards the destruction of anything that he feels makes itself superior to humanity, Kara Danvers included.

Lex send Lena to the Fortress of Solitude followed by a Morae

Lex has been behind the scenes influencing and manipulating events. He was a conspirator with the alternate Winn Schott when he arrived; he acted as a bartender and talked to Richard Bates; and Lex manipulated Eve Teschmacher so that she would kill Jeremiah Danvers and make it look like a heart attack. Lex has had Brainy to keep him abreast of the D.E.O. and Gemma Cooper to inform him of Leviathan's moves. Even Amy Sapphire unknowingly got her gauntlets from Lex. However, Lex's biggest problem is how to impress Lena, at the request of his mother, that all of the Luthor family should be united, so Lex decides to involve himself with her projects.

Lex went around the world to one hundred countries promoting Obsidian Platinum as his chess pieces moved into position. When he returned, he was upset to see Lena being humble before Kara, though she was there to give Kara her condolences on her father's death. He tells Lillian that he will use a Sun-Eater to his advantage. He plots against Leviathan to make them accelerate their project, then has Brainy convince Supergirl to use Myriad, from which Lena is banned. So Lex sends Lena to the Fortress of Solitude to prove her hypocrisy, but he also sends a Morae to get him a sun-eater.

Since Earth and Mars orbit the same sun, M'gann M'orzz arrives to help to stop the animal. Supergirl has the Morae captured at the Fortress and helped the Martians stop the Sun-eater.

Fortress of Solitude (Earth-Prime)

Meanwhile, Lex has Margot Morrison killed and her hostages released to gain the trust of Leviathan, so that he can eventually have access to their ship and defeat the immortals; he will not allow humanity to be subjected to them any more. Supergirl and J'onn J'onzz find it hard to believe that Lex is a hero.

Done with Eve, Lex reveals to her that she was not his paramour, just another pawn. After bragging to his mother that he is winning his game, Lex realizes that he has the coordinates to the Fortress in his Transmatter portal and decides to have a visit.


  • The episode's title is a play on the term deus ex machina.
  • This episode was the directorial debut of Melissa Benoist.
  • The episode's airdate was pushed back due to the COVID-19 pandemic.[1] It aired on May 3, 2020.[2]
  • This episode reveals that Lex was the one actually responsible for Jeremiah's death, as it showed he manipulated Eve to murder him in cold blood by claiming that he was the Leviathan operative that killed her father.
  • The Carioca Aqueduct is featured in the scenes of Lex in São Paulo, when it is actually located in Rio de Janeiro.
  • Brainy finally understands a Star Wars reference.




Community content is available under CC-BY-SA unless otherwise noted.