Arrowverse Wiki
Arrowverse Wiki
For the DC's Legends of Tomorrow episode, see "Deus Ex Latrina".
"I didn't just save the world. I made a new one."
Lex Luthor on his life on Earth-Prime

"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.




Special guest starring[]

Guest starring[]




Lex play chess with his mother

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 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 send Lena to the Fortress of Solitude followed by a Morae

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

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.

Kara deploys the Lexosuit's missiles

Kara deploys the Lexosuit's missiles.

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.
    • It also showcases Lex Luthor's supervillainy from the comics - hiding in plain sight while concocting his schemes.
  • This episode was the directorial debut of Melissa Benoist (Kara Danvers).
  • David Bowie's song "The Man Who Sold the World" is played during the montage of Lex's world tour, as he presents Obsidian Platinum as well as events from previous episodes.
  • Lex is shown to use his baldness to his advantage again, using a long-haired blonde wig as the only means to disguise himself.
  • The episode's airdate was pushed back due to the COVID-19 pandemic.[1] It aired on May 3, 2020.[2]
  • The instrumental rendition of "My Way" by Blake Neely plays when Lex arrives at the Fortress of Solitude.