All glossary entries

What "deus ex machina" means in literature

A term you'll meet in drama and narrative.

Deus ex machina — Latin for "god from the machine" — is one of the oldest pieces of literary jargon still in active use. The phrase began as a literal description of stagecraft and ended as critical shorthand for a specific kind of bad ending. Both senses are worth knowing.

The literal origin

In Greek tragedy, the playwright sometimes needed a god to descend and resolve the plot. To stage this, theaters used a crane-like device — the mēchanē — to lower an actor playing the god onto the stage from above. The Latin translation, deus ex machina, just describes the mechanism: the god, from the machine.

Euripides was famous for using it. At the end of Medea, Medea escapes on a chariot drawn by dragons sent by Helios. At the end of Iphigenia in Tauris, Athena appears to settle the dispute. The audience would have seen the actor literally lowered from above.

How it became an insult

Aristotle, in the Poetics, gave the device its lasting reputation. The unraveling of the plot, he argued, should arise from within the plot itself — from the characters' actions and the necessary consequences. When the resolution is imposed from outside, the plot has not fulfilled its own logic; the playwright has cheated.

So "deus ex machina" became critical shorthand for any external, unmotivated solution that rescues a story its writer couldn't otherwise resolve:

Whether a literal god descends or not, the structural pattern is the same: the resolution comes from outside the world the plot has been building.

When it isn't a fault

  1. When the genre asks for it. Comedies, fairy tales, and religious dramas often want a heightened, providential ending. Shakespeare's late romances (The Winter's Tale, Cymbeline) lean into deus ex machina deliberately.
  2. When it is the point. Brecht's The Threepenny Opera ends with a mounted messenger pardoning the protagonist; the absurdity is deliberate.
  3. When the "god" was seeded. If a powerful figure has been established earlier in the story, their late intervention is not unmotivated — it is the payoff of setup.

How to read it

When a critic complains of a deus ex machina, they are accusing the writer of failing to make the plot resolve itself. Ask: does the resolution arise from the characters' choices and the situation they have built, or from something external the writer has imported? The sharper the gap, the more accurate the charge. And ask whether the genre invites the device — the late Shakespearean god from the machine is doing different work than a thriller's last-minute coincidence.

Try Lexio

Look up any word like this — in any book, in any browser.

Lexio is a free Chrome extension and web app that reads a word's actual context and tells you what it means in this sentence, not from a generic dictionary.

Try Lexio — free →

Read deeper. Understand everything.
© 2026 Lexio · Privacy · Credits