Narrative Technique

Deus ex Machina

Deus ex machina is a plot device in which a seemingly unsolvable problem or conflict is resolved suddenly and unexpectedly by the introduction of a new character, event, or object. This resolution is often contrived, improbable, or artificial and does not arise organically from the story. The term originates from ancient Greek theater, where a god would be lowered onto the stage by a machine to resolve the conflicts of the play. Deus ex machina is often considered a flawed or unsatisfactory form of storytelling because it can undermine the coherence and believability of the narrative.

A deus ex machina resolves a difficult plot problem through a solution introduced from outside the established causal setup or without adequate preparation. Test whether earlier events made the solution reasonably available rather than calling every surprise ending contrived.

With the crew trapped underground, an unknown inventor arrives in the final paragraph with a machine that opens any stone.
The unprepared outsider and device solve the central problem from outside the established plot.

See it in language

Examples of Deus ex Machina

  1. With the crew trapped underground, an unknown inventor arrives in the final paragraph with a machine that opens any stone.

    Instructional example

  2. At the trial's final moment, a stranger produces a perfect recording despite never appearing or being mentioned before.

    Instructional example

    New evidence without prior groundwork abruptly resolves the conflict.

  3. The besieged city is saved when an unexplained meteor destroys only the invading army.

    Instructional example

    An external event selectively removes the problem without arising from the story's causal development.

Show more examples
  1. In "The Lord of the Flies" by William Golding, the boys are rescued by a passing naval officer who appears unexpectedly and resolves the conflict.

    Instructional example

  2. In "The War of the Worlds" by H.G. Wells, the alien invaders are ultimately defeated by a virus that affects them but not humans, providing an unexpected resolution to the conflict.

    Instructional example

  3. In "Harry Potter and the Chamber of Secrets" by J.K. Rowling, the resolution of the conflict comes through the intervention of a phoenix, which suddenly appears to save the day.

    Instructional example

  4. In "The Hunchback of Notre Dame" by Victor Hugo, Quasimodo saves Esmeralda by unexpectedly appearing at the last minute and killing her captor.

    Instructional example

  5. In "The Matrix Revolutions" film, the appearance of the character Deus ex Machina, who resolves the conflict between humans and machines, is a literal example of the literary device.

    Instructional example

  6. In "The Divine Comedy" by Dante Alighieri, the poet Virgil serves as a deus ex machina who guides Dante through Hell, Purgatory, and Heaven.

    Instructional example

  7. In "The Hobbit" by J.R.R. Tolkien, the resolution of the conflict with the dragon Smaug is aided by the sudden appearance of the character Bard the Bowman.

    Instructional example

  8. In "The Hunger Games" by Suzanne Collins, the sudden appearance of a long-lost character provides an unexpected resolution to the story.

    Instructional example

Read like an editor

How to recognize it

  1. Identify the apparently insoluble plot problem.
  2. Trace whether the solution's agent or mechanism was established beforehand.
  3. Decide whether the resolution emerges from character action and prior causation or arrives externally.

Meaning and effect

Why writers use Deus ex Machina

Create interpretive depth
Its pattern can create interpretive depth in context.
Develop tone
Writers may use it to develop tone for readers.
Structure narrative
The device can structure narrative through its distinctive textual mechanism.

Questions readers ask

Frequently asked questions

Is Deus ex Machina always bad writing?

It is often criticized, but writers may use it deliberately for comedy, satire, or thematic disruption.

Can coincidence be Deus ex Machina?

Yes, when an unprepared coincidence externally resolves the central problem, but not every coincidence qualifies.