You’re deep into a story. The tension is building. The hero is cornered, out of options, and you’re turning pages to see how they solve it.
Then a solution drops out of the sky with no setup, no logic, and no connection to anything that came before. The writer waves a wand and the problem vanishes.
That’s deus ex machina. It’s Latin for “god from the machine,” and it’s one of the oldest bad writing habits in existence.
I’m sick of it. There’s no cheaper trick in fiction, and readers feel the cheat the moment it happens even when they can’t name it. A writer who drops a rescue from the sky is telling the reader that everything they just read was decoration, and I think that’s a betrayal of the people who gave the book their time.
A person or thing (as in fiction or drama) that appears or is introduced suddenly and unexpectedly and provides a contrived solution to an apparently insoluble difficulty.Merriam-Webster
Where Does Deus Ex Machina Come From?
From ancient Greek theater, where a crane lowered an actor playing a god onto the stage to resolve the plot.
The practical problem for writers is simple: you’ve trapped your characters and you need to get them out.Share on X
The term originates in ancient Greek theater. When a playwright wrote himself into a corner, a crane, the “machina,” would lower a god onto the stage to resolve everything. Euripides used it regularly. Aristotle criticized it, arguing that the resolution of a plot should arise from the story itself and from nothing outside it. That was around 335 BC, and the advice still holds. For more, see what bad movies teach writers about storytelling and using an animal’s pov.
The device has survived for two thousand years because it solves a real problem writers face: how to get your characters out of an impossible situation.
The temptation is obvious. You’ve written your hero into a corner so tight that no logical escape exists, and instead of rethinking the story, you invent an escape with no foundation in what came before. It works mechanically. It resolves the plot. But it betrays the reader’s investment in the story.
Watch: The Starship Tech that Never Fails, Adam Schwartz
Why Is Deus Ex Machina Bad Writing?
The fundamental problem with deus ex machina is that it breaks the contract between writer and reader.
When someone reads a story, they’re investing time and attention on the assumption that the events will follow some internal logic. The hero doesn’t have to win. The ending doesn’t have to be happy. But the writer has to earn it. When the resolution comes from nowhere, the writer retroactively wastes the reader’s investment. The clues they tracked and the possibilities they weighed turn out not to matter, because the answer was never in the story.
Television produced the most infamous version of this cheat. Dallas killed off Bobby Ewing in its eighth-season finale in May 1985, after Patrick Duffy left the show to pursue other roles. The ratings dipped without him, and Larry Hagman persuaded Duffy to come back. On May 16, 1986, the season finale ended with Pam waking up to find Bobby alive in the shower.
When the show returned that fall, the audience learned that the entire season they’d just watched had been Pam’s dream. Every storyline from that year was wiped out to fix a casting problem. According to the Television Academy, some fans felt shortchanged after investing a year in episodes that no longer counted.
I’d call that the purest example of a writer breaking the contract with the audience. The producers wanted their star back, and the viewers paid for it with a year of attention that suddenly counted for nothing.
It also destroys character development. If a character doesn’t solve their own problem through skill, sacrifice, or growth, their arc is meaningless. A hero who never works for the win never changes, and the reader can feel it. When an external force swoops in to handle the climax, the protagonist becomes a passenger in their own story, and I think that’s the worst thing you can do to a character you’ve spent a whole book building.
Mark Twain put it well: “Truth is stranger than fiction, but it’s because Fiction is obliged to stick to possibilities; Truth isn’t.” Fiction has to play by its own rules. Deus ex machina is the writer breaking their own rules.
Are the eagles in The Lord of the Rings a deus ex machina?
The most famous modern example, and the one that generates the most debate, is the eagles in The Lord of the Rings.
I’ve read the books multiple times since I first picked up that big red edition in 1969, and I’ve seen all three Jackson films in both theatrical and extended versions. The eagles are deus ex machina. They just swoop in and save the day.
It happens more than once. An eagle rescues Gandalf from the top of Orthanc. The eagles arrive at the Battle of the Black Gate to turn the tide. And most famously, after Frodo and Sam are stranded on the slopes of Mount Doom with lava closing in, the eagles appear out of nowhere to carry them to safety.
Tolkien defenders argue the eagles were established earlier in the story and therefore aren’t deus ex machina. I disagree. Eagles existing in the world isn’t the same as a logical reason for them to appear at the right moment.
The eagles show up because the plot needs them, and nothing in the story demanded their arrival. That’s the definition of the device. It threw me out of the book, and it threw me out of the movie.
Tolkien was a genius. The Lord of the Rings is among the greatest works of fiction ever written. But even great writers reach for the easy solution sometimes, and the eagles are the easy solution.
When It Works: War of the Worlds
Not every deus ex machina is a failure. H.G. Wells’ War of the Worlds uses the device deliberately and effectively. The Martians are invincible. Humanity throws everything it has at them and nothing works. Guns, artillery and military strategy all prove useless. The reader is watching the extinction of the human race in real time.
Then the Martians die. Earth’s bacteria kill them, and no human weapon ever does. They have no immune system for a planet they didn’t evolve on. It’s a deus ex machina in the strictest sense: a solution that comes from outside the characters’ actions. It works because it serves the theme. Wells is saying humanity was helpless and survived on biological luck, and cleverness had nothing to do with it. The deus ex machina is the message.
This is the rare case where the device is the right choice. Wells wasn’t lazy. He was making an argument about human insignificance in the face of forces beyond our control. The “contrived” ending is the point of the book.
I tell writers to look at intent. Wells built the whole book to point at that ending, so the rescue lands as an argument. The lazy version gets chosen at the last minute by a writer who’s run out of ideas and hopes the reader won’t notice, and the reader always does.
How to avoid a deus ex machina
Keep the ending earned, not gifted
Plant the solution early
The rescue should use something the reader already saw established.
Let the hero solve it
The protagonist’s choices, not luck, should resolve the climax.
Make it cost something
An easy, painless save reads as cheating; a hard one earns belief.
Follow the story’s own rules
Resolutions must obey the logic the book already set up.
How Do You Avoid Deus Ex Machina?
The practical problem for writers is simple: you’ve trapped your characters and you need to get them out. The temptation to reach for an external rescue is strong, especially late in a draft when you’re tired and the deadline is close. Resisting it takes four steps.
First, work backward from the resolution. If you know how the climax ends, you can plant the elements earlier in the story that make the ending feel inevitable instead of contrived. The best plot twists are the ones where the reader looks back and realizes the answer was there all along.
Second, let your characters solve their own problems.
The resolution should come from something the protagonist knows, has, or becomes during the course of the story. If your hero needs a weapon to defeat the villain, that weapon should exist in the story before the final chapter. If your hero needs a skill, they should have learned it or struggled with it earlier.
Third, if you find yourself reaching for a deus ex machina, that’s a signal your plot needs restructuring. The impossible corner your character is in might mean you need to go back and change the setup. Sometimes the best fix for a broken ending is rewriting the middle.
Fourth, test it with a simple question: could a reader have predicted this resolution was possible based on what came before?
They don’t need to have predicted it would happen. But the elements that make it possible should already be in the story. If the answer is no, you’ve got a deus ex machina on your hands.
A deus ex machina in a finished book is hard to forgive. A draft is allowed to have one, because drafts are where you find out what’s broken. Publishing it means the writer saw the problem, decided the reader wouldn’t mind, and shipped it anyway, and that’s a choice to cheat the people who trusted the story.
Frequently Asked Questions
Writing It Yourself? Keep Going.
If you want a professional in your corner while you write, my writing coaching works one on one without taking the pen out of your hand. The Plot Handbook takes this topic deeper.
