Deus ex machina
A deus ex machina is a sudden, unearned fix that gets characters out of a problem the story never set up a way out of.
The phrase is Latin for “god from the machine”. In Greek theatre, a crane would lower an actor playing a god onto the stage to sort out a plot that couldn’t be solved any other way. Euripides used it so often that Aristotle complained about it in the Poetics, which makes it one of the oldest complaints in literary criticism.
It’s disappointing because it breaks an unspoken deal. A story shows you what kind of world you’re in and what the characters have to work with, and you expect the ending to come out of that. When the solution drops in from nowhere, the plot gets wrapped up but nothing you cared about does.
The fix is setup. If a rescue was put in place two hundred pages earlier, like an ally, a skill or a favour someone owes, it isn’t a deus ex machina however late it shows up, because you had the pieces. It’s Chekhov’s gun seen from the other side. Some writers use it on purpose in comedy and absurd fiction, where the randomness is the joke.
Deus ex machina: common questions
What does deus ex machina mean literally?
God from the machine. It refers to the crane that lowered actors playing gods onto the stage in Greek theatre to sort out a plot that had no other way out.
Is a deus ex machina always bad?
Not always. In comedy and absurd fiction, the randomness can be the point. It fails when a story asks you to take it seriously and then solves itself with something you were never shown.