See it in language
Examples of Deus ex Machina
With the crew trapped underground, an unknown inventor arrives in the final paragraph with a machine that opens any stone.
Instructional example
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.
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
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
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
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
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
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
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
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
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
- Identify the apparently insoluble plot problem.
- Trace whether the solution's agent or mechanism was established beforehand.
- 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.

