User:T1980/List of deus ex machina examples

See deus ex machina for more information about this device.

Examples in plot

 * In Homer's The Odyssey, after Odysseus and Telemachus slaughter the suitors, the families of the suitors show up at the farm of Laertes seeking vengeance. As a battle is about to begin, Athena appears in the last few lines of the poem and tells both parties to stop, to which they comply.
 * In William Golding's novel Lord of the Flies, just as the protagonist Ralph is about to be killed by the band of "hunters" at the end of the story, a ship appears from nowhere onto the island, drawn by the smoke produced by the wildfire on the island. One of the ship's officers rescues Ralph. He and the rest of the boys are then taken from the island.
 * In Mark Twain's The Adventures of Huckleberry Finn, with Jim apprehended in the heart of the South and Huck unable to rescue him, Tom Sawyer reenters the story, having come hundreds of miles downriver to visit a relative. Huck's reunion with Tom gives him the opportunity to free Jim and allows a channel for the resolution of all dangling storylines that the book had left behind in St. Petersburg, Missouri.
 * In Shakespeare's As You Like It, Hymenaios comes to the mass wedding to sort out the problems of Rosalind's stay and disguise in the Forest of Arden.
 * In The Illuminati, by Larry Burkett, near the end of the story, a previously minor and hostile character suddenly allies with the books protagonist, and soon after, all of the antagonists die in separate and unlikely accidents.
 * In the Edgar Allan Poe story The Pit and the Pendulum, the unnamed narrator has just been pushed over the edge of the bottomless pit when he reaches up and grabs the arm of the French general who has seized the fortress where the narrator has been imprisoned.
 * The final issue of Grant Morrison's run on Animal Man was titled Deus Ex Machina, and the same title would later be used for the trade paperback collecting his final story arc. The issue itself involves a quite literal example of a deus ex, as Buddy "Animal Man" Baker is finally brought face to face with Morrison himself, who reveals to Baker that his life is a comic book and that he is his (soon-to-depart) writer, before eventually growing tired of his own attempts at preaching and sending Baker home, resurrecting his previously-murdered family in the process.
 * Lifeguard, from the X-Men, has the mutant ability to manifest any necessary ability to save lives, which makes her a quick fix for the writers if any characters are stuck in a tight spot. Similar criticisms were heaped against the character of Crazy Jane from Grant Morrison's run on Doom Patrol. Jane had hundreds of multiple personalities each with their own powers that would often appear at convenient times to save the day. In contrast Morrisson also created the villain The Quiz, who has "every power you haven't thought of."
 * Perhaps the most famous superhero to be labeled a deus ex is Superman himself, as his writers had a tendency to inflate his powers over the years to constantly trump his previous successes. Kryptonite, Superman's only weakness, then became a "reverse" deus ex machina, which would be called in whenever the writer wanted to explore a conflict which he didn't want Superman to resolve in one punch.
 * In Molière's The School for Wives, Agnès is suddenly found out to have been betrothed all along to another man, which spares her from having to marry Arnolphe.
 * Tintin's encounters in The Adventures of Tintin involve coincidences that spare his life: heavy weights replaced by wood, a solar eclipse, explosive mines not working, etc.
 * In Michael Crichton's The Andromeda Strain, scientists race to find a way to contain an extremely dangerous extraterrestrial virus. In the end, they fail and the virus escapes into the atmosphere, but conveniently for mankind the virus mutates into a completely harmless form.
 * In George Eliot's The Mill on the Floss, Maggie is irredeemably disgraced after her involvement in a sordid love triangle, losing the respect of almost everyone she's ever cared about, until the river Floss begins to flood, affording Maggie the opportunity to die a heroine by trying to save her brother and cousin from drowning.
 * In Dan Brown's Angels and Demons, the location of the antimatter is seemingly revealed by a vision from God, however it is later revealed to be a deception by the novel's villain.
 * Clive Cussler, the author of the Dirk Pitt adventure novels, has introduced himself into the plot of a number of his stories so that he may rescue his characters from hopeless situations.
 * In Shakespeare's The Merchant of Venice, Antonio's entire life rests on whether or not his ships come to port. It is heard throughout the story that they have all crashed. Yet in the end Portia tells him all his ships have come home, with no explanation as to how they survived the storms or why people believed them all to have crashed.
 * In Hajime Kanzaka's novel Shirogane no Majū (白銀の魔獣, which forms the basis for the anime series Slayers), Lina Inverse uses powerful spell known as "Ragna Blade" to defeat Zanaffar. The reader is never informed of the existence of this spell until she casts it, whereupon Lina reveals that she created the spell herself several days beforehand, which places it within the timeline of the rest of the book and therefore could have been mentioned.
 * In the Japanese manga-drama Kashimashi, the protagonist is told out of the blue by an alien lifeform that "you will die in 30 days." Prior to this statement, there had been no indication that the protagonist would have such a sudden death, thus effectively becoming a plot device.
 * In The Vile Village by Lemony Snicket, The Baudelaires make a mortar dissolver to escape from jail.
 * In Douglas Adams' The Hitchhiker's Guide to the Galaxy, after Arthur Dent and Ford Prefect are thrown into deep space by the Vogons, they are rescued by the starship Heart of Gold, as a side effect of the ship's Infinite Improbability Drive. (Although it should be noted that this is also a parody of such techniques in other science fiction.)
 * In Stephen King's The Stand, the hand of God literally appears at the end and detonates a nuclear warhead in Las Vegas, destroying all of the evil characters in the book (with the exception of Randall Flagg, who survives, without explanation, later awaking on a beach).
 * In Philip Roth's The Plot Against America, just as anti-Semitism in the United States seems to be building to a crescendo, President Lindbergh disappears without a trace and Franklin Roosevelt is returned to office.
 * In Clive Woodall's "One for Sorrow, Two for Joy", all of the species of small songbirds in Birddom have been wiped out by a mass genocide caused by the magpie armies. At the end of the book, a massive forest fire in Wingland causes songbirds to migrate to Birddom, restoring the natural balance.
 * Stephen King's Dark Tower series contains a particularly explicit deus ex machina — the author himself (who is introduced as a character in the plot) writes a note that is absorbed into the protagonist's world and appears in time to help rescue Susannah and Roland from a seemingly hopeless situation in the final book. The note itself contains the words "Here comes the deus ex machina".
 * In J. R. R. Tolkien's The Lord of the Rings, some consider the rescue of Frodo and Sam by the Eagles a deus ex machina. They also arrive to help the Army of the West against Sauron in the Battle of the Morannon, though Sauron is not defeated until the Ring is destroyed. It should be noted that the Eagles play the role of unexpected helpers throughout most of Tolkien's writings. In various versions of The Silmarillion material, an eagle saves the body of the elf-king Fingolfin from defilement, another carries the lovers Beren and Lùthien away from dire peril, and Eagles help fight the dragons of Morgoth during the War of Wrath. In The Hobbit, they helped the Dwarves, Men and Elves defeat the Goblins (Orcs) and Wargs at the Battle of the Five Armies. Tolkien's consistent use of the Eagles in this way, and the fact that these Eagles were servants of the angel-like Vala Manwë, suggest to some readers that this was entirely intentional, making them agents of fate — "machines of the gods" rather than "gods in machines". (Also, some readers believe no satisfactory explanation is given as to why the Eagles could not have simply carried the Ring to Mount Doom, though others disagree with them.)
 * In Shakespeare's Hamlet, Hamlet is sent to England and (unknowingly) to his death after killing Polonius. Later, it is revealed that while on the boat, Hamlet discovered he was to be killed and re-wrote the letter condemning him (his schoolmates Rosencrantz and Guildenstern are executed instead).  Afterward, pirates inexplicably commandeer Hamlet's boat, spare his life, and send him back to Denmark.
 * In Shakespeare's Hamlet, Fortinbras arrives at the ending scene to take control of Denmark. It can be concluded that Fortinbras's arrival prevents anarchy throughout Denmark, which would have been a result of Hamlet's and Claudius's schemings. Their actions cause the entire royal family (Hamlet, Hamlet Senior, Gertrude, and Claudius) and potential royal family candidates (Polonius, Laertes, and Ophelia) to disappear.
 * In Joe Haldeman's Forever Free there are two dei ex machinis. Mandella's band of space war veterans from The Forever War have their plan to escape to the distant future thwarted by impossibly disappearing fuel. They return home to discover every human and alien Tauran has vanished leaving only their clothes. On Earth they meet the first deus ex machina, a shapeshifter whose species hid among humans, ran NASA and indirectly caused the Forever War between humans and Taurans. Then, the second deus ex machina is revealed: the galaxy, humans and Taurans were just an experiment set up by some omnipotent godlike being — 'the unknowable'. 'God' took Mandella's fuel to stop them leaving the galaxy and put everyone 'into storage'. 'God' even made up the laws of physics and the unbreakable light barrier. The book ends with 'God' returning the humans and Taurans, announcing he is leaving the galaxy and will be back to check on it in a million years.
 * In Ben Jonson's The Alchemist, Lovewit comes back to his house, which he left for the fear of plague, and puts everything in order. Although there was a chaos when he came, he sends the people who were fooled by his butler Jeremy and his two friends, Dol and Subtle, and forgives Jeremy when he promises Lovewit that he will convince the rich widow to marry him.
 * In a Twisted Toyfare Theater comic using Smurfs in a parody of 28 Days Later, two Smurfs are saved from zombies by walking by a castle with guardsmen fending off the zombies with heavy machine guns. One of the rescued Smurf then says "Hooray for Deus Ex Machina!"
 * In Eastman and Laird's Teenage Mutant Ninja Turtles issue 42, Renet appears seemingly out of nowhere to save the TMNT, Casey, April, and Master Splinter from being devoured by a horde of demons.
 * In Chronicles of Thomas Covenant fantasy series, Thomas Covenant is killed in the final battle with Lord Foul, but reappears as a manifestation of the series' recurring element of wild magic. Using the white gold ring of wild magic from Covenant's body, Foul attacks the apparition, which only grows stronger with each blow.  At the same time, Foul is drained of all of his power and disappears.  Shortly after, Linden Avery takes the ring and uses it to combine Findail, who is Earthpower incarnate, and Vain, which is the series' Lore incarnate (and, it should be noted, had his hand turned into the same wood that the series' original Staff of Law was made of), to create a new Staff of Law, which instantly restores the Land to its original, healthy state.
 * In the book Hatchet by Gary Paulsen, the protagonist, Brian Robeson, is rescued after nearly 2 months in the woods at the last minute. While this is debatable, as the reason for the rescue is revealed, and Brian's rescue is the best way to end the book, it seems to be a deus ex machina for the author, as at this point Brian has found a survival pack from the plane, and his survival is no longer a problem. Both of these are probably dei ex machinis that cancel each other out.
 * The September 11, 2001 attacks are used at the end of the book Night Fall to resolve the plot, although not for the better. A key witness to a previous attack is lost, along with video taped evidence.
 * In Biblical literature, Jonah is swallowed by a great fish. While the story itself is a historical presentation, it is an example of how many events unfold in the Bible.  The term deus ex machina implies a contrived example, whereas that is not the writer's intention in the Biblical narratives and is a prime example of what deus ex machina is not.
 * In Kurt Vonnegut's novel Breakfast of Champions, the author himself appears as a deus ex machina.
 * In Christopher Paolini's Inheritance Cycle, many events are often found by readers to be examples of deus ex machina, including the appearance of the character Murtagh to save the main character from death in the first book, the healing of the main character's handicap present throughout the second book at the end of said book, the reveal of information highly important to the plot as late as the third book, and a Vault in the fourth book that solves many of the loose ends present throughout the books, while nearly contradicting previous information.
 * Mel Gibson's Apocalypto uses deus ex machina many times throughout the film at critical junctures to save the character Jaguar Paw from death.
 * In Asimov's The Last Question, Multivac's (an "all knowing" machine created by humans) final incarnation becomes one with everything in the universe and at the very end is revealed to actually be God.
 * In Richard Wright's novel Native Son, the attorney Max appears in the last book, "Fate" to explain the events of the previous two, "Fear" and "Flight."
 * In Warren Norwood's "Double Spiral War" trilogy, a reclusive alien race called the Verfen end the war by using their mental powers.
 * In Molière's farce Tartuffe, the title character cons Orgon into assigning title to his property to Tartuffe as a goodwill gesture. Tartuffe later steals a box of incriminating documents belonging to Orgon, and brings them to the prince. In the last scene of the play, Orgon and his family are served notice to vacate the premises. A few minutes later, Tartuffe returns accompanied by an officer apparently ready to arrest Orgon. However, the officer arrests Tartuffe instead, then informs the relieved family that the prince has seen through Tartuffe's scheme and granted Orgon a pardon.
 * In the books Endymion and Rise of Endymion,The Shrike acts as a deus ex machina by always sppearing to save the main characters.

References to the phrase

 * In the Lance Tooks graphic novel The Devil on Fever Street, Satan falls in love with a mortal woman; order is restored when the saintly Black Lily Baptiste is mortally struck by a driverless truck bearing the words "Dusek's Machines" printed on its side.
 * In Bored of the Rings, Frito and Spam are rescued by Deus Ex Machina Airlines (parodying Frodo and Sam being rescued by eagles at Mount Doom, in the original The Lord of the Rings story).
 * In Isaac Asimov's I, Robot it is used as a part of the description of the relationship between humans and robots.
 * Lemony Snicket's The Vile Village (part of the A Series of Unfortunate Events series) the three Baudelaires are caught in the local jail. Klaus makes reference to the term, and this is built upon when Violet uses a loaf of bread, a jug of water and a wooden bench to escape the cell.
 * In Futurama Comics #10, The Planet Express crew escape death only to be faced with a life of slavery, prompting Fry to say "Aww man, where's a day-ooze ex machinehead when you need one?"
 * Pierre Oulette wrote a novel titled The Deus Machine, about an intelligent computer that can create life.
 * The comic series Ex Machina, created by Brian K. Vaughn. The main character, Mitchell Hundred, was a superhero called "The Great Machine" with the ability to control machines who later runs for Mayor of NYC, and wins in a landslide, buoyed by his superheroic successes. In the comic's timeline, he appeared on the scene just in time to save one of the World Trade Center towers from the attacks of September 11, 2001, using his powers to divert and land one of the terrorist-controlled planes.


 * In Bertolt Brecht's The Threepenny Opera, Constable Brown arrives on horseback immediately before Macheath's hanging with a Royal Pardon. Although this is acknowledged in the play as it is in the Third Threepenny Finale - Appearance Of The Deus Ex Machina.
 * The play Beggar's Opera upon which The Threepenny Opera is based ends with the author of the play (a beggar) being told that the death of Macheath would be contrary to the audience's taste, and Macheath is thus spared.
 * The webcomic How to Make a Spritecomic in 8 Easy Bits mocks itself by having a volcano appear from nowhere, saving the lives of three characters, two of which share an exchange: "Hey, y'know how you asked what deus ex machina was the other day?" "Yeah?" "Well, I still have no idea."
 * The webcomic Questionable Content features a storyline where the three main characters are close to meeting a grisly disfiguring fate, until Marten's pet robot, Pintsize, drops a brick on the 'head' of the robot preparing to do the dirty deed. Pintsize then exclaims, "Deus ex machina!"
 * The webcomic The Adventures of Dr. McNinja features a section where the titular character is trying to investigate some recent raptor attacks. After exhausting his ideas for his investigation, a news report about the raptor attacks interrupts him. He exclaims "Finally!" and checks "Deus Ex Machina" off his investigation plan.
 * The hip hop artist Ivan Ives released an album entitled "Deus Ex Machina" on June 20, 2006. Much of the content deals with the term in a more literal, sinister way.
 * In the comic strip FoxTrot by Bill Amend (on 16 December 2006), Paige and Peter have just spent the week as cookies, and Paige wonders if they'll be stuck that way forever. Peter says that the whole thing is in their mother's imagination and they'll be back to normal next week. Paige comments that this is 'arbitrarily convenient', to which Peter replies Doughus Ex Machina.
 * In the movie Donnie Darko there is a literal reference to Deus Ex Machina when the real Frank arrives, scaring away Seth who was holding a knife against Donnie's throat. Donnie litterally says "Deus ex machina, our saviour" (quote at imdb)

Examples in plot

 * Possibly the least satisfactory deus ex machina to the audience is the revelation that all or large parts of what has gone before were "all a dream". This was perhaps most notoriously used in Dallas, where an entire season was "unwritten" to allow the resurrection of the character Bobby Ewing who had been killed off.
 * Another, more humorous use of the "all a dream" device was the finale of Newhart, where Bob Newhart's character wakes up to tell his wife he's had a dream where he was running a little hotel in Vermont. His wife was played by Suzanne Pleshette, his wife in his previous sitcom, The Bob Newhart Show.
 * In The Wizard of Oz, just before Dorothy and her companions reach the Emerald City, the Wicked Witch of the West produces a giant field of poppies that puts Dorothy, Toto and the Cowardly Lion to sleep. The Scarecrow and the Tin Man cry for help, and Glinda, the Good Witch of the North, produces a snow shower that wakes everyone up. The Wicked Witch of the West being melted on contact with water may also count, as there was no indication that this could occur in any previous point in the movie, but it was somewhat implied beforehand in the book, as she always carried around an umbrella there. Also, in the scene where Dorothy misses the Wizard's balloon, Glinda appears and tells Dorothy she had the power to return home the entire time, meaning the Ruby Slippers. When the Scarecrow asks in disbelief why didn't Glinda tell Dorothy about the Slippers, Glinda casually responds that Dorothy would not have believed her and had to learn it for herself. In the original book, this deus ex machina is less so, as Glinda, the only one who knows the shoes will send Dorothy home, doesn't appear until the end of the book. Finally, this film is yet another example of the entire plot being "all a dream", as Dorothy wakes up in the farm-house at the end, presumably having never left.
 * In the film Adaptation., a fictional Charlie Kaufman (Nicholas Cage), goes to a bar with the film writer Robert McKee (Brian Cox), who gives Kaufman the advice, "But don't cheat, and don't you dare bring in a Deus Ex Machina." Ironically, McKee is the embodiment of a Deus Ex Machina (also note the phonetic similarity), by giving Kaufman the solution to his screenplay. Another Deus Ex Machina exists in the film when an alligator dives into the swamp at the end to attack John Laroche (Chris Cooper) which prevents Laroche from shooting and killing Charlie.
 * In the film Jurassic Park, when the main characters reunite at the end of the film, they find themselves surrounded by veloceraptors in the Visitor's Center. Before any of them can pounce, a Tyrannosaurus rex appears to attack the raptors, thus giving the characters an opportunity to escape.  Earlier in the film, the Rex shook the ground when he walked, yet neither the cast nor the raptors noticed its presence until it attacked.  In the original novel this was handled quite differently, as Alan Grant kills the raptors with poisoned dinosaur eggs.
 * In the film Jurassic Park III, when the main characters are fleeing and at the end of the film, as soon as they arrive at the beach, the US Navy and Marines arrive to stabilize the situation and kill the dinosaurs.
 * In the episode "Bueno Nacho" from the first season of Kim Possible, Kim and Ron are captured in Drakken's lair as he starts his "magmachine", which will take magma from underneath the Earth and spew it out above ground. Suddenly, Ron's pet naked mole rat Rufus wakes up from his nap and frees Kim and Ron, thus allowing them to disable the magmachine and defeat Drakken.
 * At the end of the film Congo, when the cast are about to be overwhelmed by lava, they pull out a hot-air balloon from the equipment they had taken. Prior to that point, no mention of this equipment had been made.
 * In the film The Mummy Returns, just when the cast were about to be killed, an airship arrives and rescues them from the top of the pyramid. This airship had previously been damaged, seemingly beyond repair.
 * In the episode "Operation: Annihilate!" from the first season of Star Trek: The Original Series, Spock is infected by an alien parasite which has overwhelmed a Federation colony world. Discovering that intense light will kill the parasites, Spock volunteers to be exposed to this light. He is cured, but also blinded. In the end, he miraculously recovers his sight, explaining that as a Vulcan he has nictitating membranes that protect his eyes from the intense solar radiation on his homeworld.
 * In the season 5 episode of Star Trek: The Next Generation entitled "The Game", the crew of the Enterprise are influenced to do the bidding of an alien race as a result of a psychotropic reaction caused by an addictive game introduced to the ship. They are rescued at the end of the episode when Data, who had until this point been deactivated by members of the crew already under the aliens' influence, enters and uses a flashing light to remove the addictive psychotropic effects of the game, thus curing the entire crew.
 * The God-like powers of Q in various episodes of the Star Trek: The Next Generation series may be viewed as deus ex machina, in particular where his actions resolve a crisis (a good example is in the episode Q Who?). However, it could also be argued that as the use of his powers is within the logic set by the series, his actions are not examples of deus ex machina.
 * Star Trek in general is often cited as over-using technology-based plot devices in deus ex machina fashion (see Treknobabble).
 * In the animated movie version of the "Transformers", the Autobot Matrix of Leadership could be called a "Deus Ex Machina" because it causes the destruction of the planet-destroying Unicron.
 * In Yu-Gi-Oh!, deus ex machina is seen frequently throughout the show. Often when a character (usually Yugi Muto, or another hero) has the odds against them, and they are about to lose, they draw a helpful card that leads to their victory. Often, this card is a brand-new card; occasionally, this card will never be played again and in one case caused a perfectly legal move by an opponent to fail. This is called 'The Heart of the Cards' in the English adaptation, meaning that the duelist's deck feels their need to win, and gives them the card they need. During the final duel in all versions of the anime, Atem claims that the spirit of his Deck allows him to draw the perfect card for the current situation several turns in a row. In actuality, it is luck. The Winged Dragon of Ra could arguably be the most famous Deux ex machina of the series: every time it is played, it demonstrates some sort of new special ability.
 * The seventh (and final) season of Buffy the Vampire Slayer concludes with a series of unlikely events to save the world from the near-impossible to stop evil. Buffy receives an amulet from Angel which Spike conveniently uses to destroy the Hellmouth. Also, the scythe used to activate every slayer is introduced by having the villains dig it up. However, both items had been seen in other Buffyverse media.
 * In V: The Final Battle mini-series, when the mothership is about to destroy Earth, a young half-alien/half-human girl suddenly reveals her "magical" powers by aborting the self destruction of the vessel's reactors. This was not the case in the book of the mini-series where the character uses her intelligence to find a mathematical solution to the problem (her advanced intelligence had already been alluded to previously in the book)
 * At the end of the anime My-HiME the previously "dead" characters are brought back to life in order to fight the final battle by Mashiro, whose powers were supposedly sealed and under the control of the Dark Lord. The character Miyu could arguably be called a Deus ex Machina because of her pivotal importance in both My-HiME and its sequel, My-Otome
 * In Bill and Ted's Bogus Journey God literally provides the deus ex machina by giving Bill and Ted access to some intelligent aliens, who in turn build the "good robot us-es". This allows everything to be resolved. In both Excellent Adventure and Bogus Journey, the characters are supplied with certain items when needed (such as a jail-cell key), on the basis that they will use the time machine to return after they've finished their task to leave the items there.
 * In the movie Ocean's 12, director Steven Soderbergh reveals the FBI official to be Matt Damon's character's mother. She signs their release forms and allows them to escape custody.
 * In the movie Ocean's 12, the movie is about how George Clooney's character and his team pursue the 'prize' for the whole show. At the end, it is revealed that the Nightfox (Vincent Cassel) actually stole it right before Clooney's team, except in narration ( and flash-by scenes ) at the end Clooney explains that his team had stolen it before the movie really began, in some mysterious time warp where the cameras didn't bother to go.
 * At the end of Half Baked, just when the heroes are about to be killed by drug lord Sampson, Brian uses his "Jerry Garcia in a pouch", which causes Jerry Garcia to appear and hit Sampson in the face with a guitar.
 * Near the end of Ice Age, Diego shows up alive and well, after a previous scene where he had appeared to die and had been left behind. Diego explains his sudden miraculous recovery as "nine lives." Nearing the end of the sequel,  Ice Age: The Meltdown, Manny, Sid, Diego, Ellie, Crash and Eddie were stuck with no way of avoiding being drowned by the flood.  However, Scrat was climbing up the opposite end of the valley where the flood started by wedging his acorn into the wall of ice.  Once Scrat reaches the top of the wall, the wall splits open.  This causes the water to filter out, along with Scrat plummeting to his doom.  If that wasn't enough, a herd of mammoths march from out of where the flood waters got drained out (despite this; Manny, Ellie, Crash and Eddie decide to stay with Sid and Diego).  Also, the tribe of mini-sloths that tried to dump Sid down a pit of magma have miraculously survived the flood and thank Sid for averting the flood (even though Scrat did that).  Lastly, the final scene of the movie shows Sid performing CPR on Scrat, who was less than pleased for having his life being saved (Scrat was shown being in "Acorn Heaven" before this).
 * The end of Shaun of the Dead finds the two lead characters Shaun and Liz in an apparently hopeless situation, surrounded by hundreds of zombies with little or no chance of escape. Suddenly, seemingly from nowhere, the army descends upon the zombies, attacking and destroying them and rescuing Shaun and Liz.
 * In Superman: The Movie Superman turns back time by flying around the world until it spins in the other direction. While Superman is supposed to be fast, there is no evidence that he could go that fast before. For example, if he had, he would have been able to stop both missiles.
 * In the Batman TV series, and subsequent movie, Batman's utility belt usually contains something unexpected which extricates him from a seemingly inescapable situation, as evidenced by his can of Shark Repellent Bat Spray, emergency oxygen tank, and rocket boots. In fact, a great majority of the adult humor in Batman (frequently missed by children of the time who watched it) came from comedic cases of deus ex machina.  In the original Batman movie, there were at least eight cases where a plot-saving event occurred entirely out of the camera's view and was referred to only in passing.
 * R2-D2, in the film Star Wars Episode II: Attack of the Clones, used hitherto unused and never mentioned rocket boosters to fly across the droid-making factory at Geonosis to save Padmé by stopping the factory's operations. The boosters appear briefly in a deleted scene on the Episode I DVD, but are not shown in the final cut of the film. R2-D2 uses these rocket boosters again in Star Wars Episode III: Revenge of the Sith (along with creating an oil slick) to fend off a couple of Super Droids.
 * In "Mars Attacks," right when the human race seems to have lost, a weapon is found in the song "Indian Love Call" by Slim Whitman which causes the Martians' brains to explode
 * In the final episode of the Comet Empire series of Star Blazers (Space Battleship Yamato), Wildstar (Kodai) is prepared pilot the crippled Yamato on a kamikaze mission into Zordar's dreadnought (as he did in Arrividerci Yamato). At the last minute, Trelaina of Telezart stops him and, along with resurrecting a recently killed Mark Venture, she becomes a being of pure energy and vaporizes Zordar, sacrificing herself and thus saving the Star Force and Earth.
 * At the end of the first movie of the The Matrix trilogy, Neo apparently gets shot to death inside the Matrix by Agent Smith. Just in time he realizes that the Matrix is not real, that the bullet is not real and that therefore his death cannot be real. He resurrects and defeats the agents using his newly gained understanding of the Matrix.
 * In The Hudsucker Proxy, as the main character, Norville Barnes, is plummeting to his death from the top of the Hudsucker Building, the janitor stops time (and Norville's fall by default) by jamming a broom handle into the gears of the Hudsucker Building's clock.
 * On 24, Jack Bauer is often put in a situation where he is about to be shot. However, the antagonist is usually either out of ammunition (Victor Drazen, season 1), or reinforcements arrive to kill the antagonist (e.g. Peter Kingsley in season two and Tony Almeida in season 4).
 * In every major fight in Dragonball Z there is an apparent example of Deus Ex Machina.
 * In many episodes of Dragonball Z and Dragonball GT Goku arrives just in time to save an ally (i.e. Goku's knick-of-time arrive to save Gohan from being trampled underfoot by Nappa), and various abilities that he employs that turn the tide of battle at the most critical moments (Spirit Bomb). It is also revealed that his "death" on planet Namek was prevented because he merely managed to remember that Captain Ginyu's spaceship was still on the imploding planet, in the same episode it is made known that Frieza also survived the battle and the subsequent fracturing of said planet because he can survive in the vacuum of space. As another example, at the end of the Majin Buu story arc Gokus and Buu are locked in a power struggle.  All hope seems lost, as Goku is to tired to put up a winning fight.  However, Grand Kai suddenly remembers that he still has a wish from the Dragon and uses it to return Goku to full strength.  This Deus Ex Machina is all the more obvious because the 200 foot tall dragon is standing over Grand Kai for the entire showdown.
 * In Zoids: Genesis, Ra-Kan is seemingly killed in the previous episode where Bio-Tyranno's Jiin cannon destroys everything surrounding Ra-Kan and his Zoids. However, he and his Zoids Sword Wolf make a return in the final episode saving Garaga from the clutches of Biotyranno in the nick of time, allowing Ruuji to deliver the final blow. The explanation given was that the barrier system onboard the Bio-Tricera protected him and his Zoids from the blast.
 * In Donnie Darko, near the end when Donnie is trying to find Grandma Death, the high school bully suddenly attacks him. The bully yells, "Look, there's a car coming," and Donnie mutters, "deus ex machina" under his breath. The bully replies, "What did you say? What the fuck did you say?" and Donnie replies, "Our saviour." The bullies mistake the car headlights for a cop car and run away, saving the main character from the confrontation with the bullies. (However, his girlfriend, Gretchen, is run over and killed by the car.) An instance which can be mistaken as Deus ex Machina is the sudden revelation that villain Jim Cunningham had been dealing in child pornography, discovered after his house burns down. This seems to be a very obvious Deus ex Machina because this aspect had not even been as much as hinted at previously in the movie, however in his infomercials there can be seen a subtle hint.
 * In the bizarre final season of the television show Roseanne (TV Series), Roseanne ends the series by telling the audience that the entire season was a fantasy she concocted as a way to deal with the death of her husband Dan (John Goodman).
 * Before the final battle in the anime Vandread against the Harvester fleet from Earth, as the fleets of the Tarak, Mejale, and other factions throughout the series assemble, Gascogne suddenly appears to aid them, piloting a commendeered Harvester mothership. She is presumed to have died in a previous episode, when she crashed her shuttle into the same automated mothership, disabling it and allowing the crew of the Nirvana to escape.
 * Through the arrival of Lucifer, at the end of the film Constantine, both of the story's antagonists are thwarted, the protagonist is resurrected, cured of cancer and redeemed in the eyes of God, and the soul of Angela's sister is released from Hell, even though it was previously established that "pure" demons couldn't enter the mortal world. An explanation for this may be that Lucifer is actually an angel much like Gabriel and so can enter the mortal world.
 * In the film Turbulence, despite the fact that the plane has been extensively sabotaged, a car was picked up by the plane's undercarriage, was severely damaged when it was removed by blasting with an air-to-air missile, and that various attempts to land the plane were thwarted by the afore-mentioned events, when the pilot of the escort aircraft radioed the stewardess that she could now land the plane, she was able to do so, without doing any repair work. Nice run-on sentence.
 * Most episodes of American sitcom Kenan & Kel involved the duo finding themselves in a difficult situation that gradually became virtually irreconcilable, at which point Kel would shout "Aw, here it goes!" and the episode would end.
 * In Nick of Time, Gene Watson is frustrated at every attempt to rescue his daughter, and thus not have to assassinate the Governor. He is constantly watched by various people in on the conspiracy, who will radio the woman holding his daughter at gunpoint and have her kill the daughter.  Right at the end, when all hope is lost, they enter a part of the hotel where all radio signals are lost, thus allowing him the break he needs to rescue his daughter without alerting the kidnapper.
 * Literal deus ex machina appear in Clash of the Titans. Perseus receives a number of gifts from the gods, each of which allow him to succeed where he would otherwise have failed in achieving his destiny. The last of these gifts is a mechanical owl called Bubo (a literal reversal of the phrase deus ex machina), which arrives in time to guide Perseus and the soldiers when they are lost trying to find the Stygian Witches.  Another example may be found towards the end of the film.  Perseus collapses in the amphitheatre of exhaustion, all hope of saving Andromeda lost.  Zeus, on Mount Olympus picks up the collapsed clay model of Perseus and stands it upright, thus restoring his energy and allowing him to fight the Kraken.
 * At the start of some Knight Rider episodes, a piece of new equipment would be installed into KITT. Later in the episode, this equipment would almost certainly be required to allow Michael Knight to succeed in his assignment.
 * In the Battlestar Galactica episode Epiphanies, Colonial President Laura Roslin is saved from dying of breast cancer when she is injected with blood from Sharon Valerii's unborn Human-Cylon hybrid daughter, seemingly eradicating the cancer completely.
 * Towards the end of Indiana Jones and the Temple of Doom, just after Mola Ram has plummeted to his death, British troops arrive on the scene and help get rid of the rest of the villains.
 * In many episodes of Batfink, events would come to a head with Batfink in a seemingly fatal situation. At this point the action would freeze and the narrator asked dramatically whether Batfink would survive. Then the action would continue with Batfink surviving, either through use of deus ex machina or through him using his superpowers. This is also an homage to the original Batman series.
 * In A Connecticut Yankee in King Arthur's Court, just at the point of execution, Hank Morgan realises that a solar eclipse is about to occur, and uses fake magic words to frighten the guards to release him and his friends. Another example occurs towards the end of the film.  During a duel, he is knocked unconscious and wakes up back in his own time, therefore realising that it was all a dream.
 * In the Doctor Who episode "The Parting of the Ways", the Earth is being bombed by an unstoppable Dalek invasion fleet while the Doctor is facing certain death surrounded by Daleks in a space station control room. At this point, the TARDIS materializes, and Rose Tyler, the Doctor's assistant, emerges suffused with power having "looked into the time vortex". With a wave of her hand, the Dalek extermination fleet is decomposed into atoms saving the day. This side-effect of looking into the Time Vortex had never been mentioned or alluded to in any of the previous episodes.
 * In a later episode of Doctor Who "Doomsday," when the cybermen are coming up the stairs to stop the Doctor and Rose, Yvonne Hartman as a cyberman still with emotions, stops and kills them, enabling the Time lord and his companion to save the day. Prior to this, everyone who had ever been converted into a cyberman had lost all sense of emotion and would never ally themselves with the enemies of the cybermen.
 * In the Nip/Tuck episode, "Faith Wolper, Ph.D", Sean's ex-nurse Monica Wilder, with whom he had a one-night stand, is threatening to tell Julia about it, and also threatening to tell the police that he raped her. Their argument goes from Sean's office out into the street, where Monica is promptly hit and killed by a bus.
 * In the Sex and the City episode, Four Women and a Funeral, in the honour of a deceased fashion designer named Javier, who died of a heroin addiction, a halfway house is being built for those in the fashion industry who suffer from substance abuse. Samantha is helping raise funds with the ulterior motive of gaining access to the priceless mailing list and unlisted 212 numbers in Manhattan. While pitching to a powerful investment banker she ends up making out with him only to have his powerful socialite wife walk in on them. In 24 hours Sam goes from A-list to blacklist and becomes a social pariah. After all avenues are exhausted the only way she can help Javier House is by literally assisting with the construction. As she's struggling in the heat a man with an angelic glow around him appears and offers Sam his hand and Sam reaches out to take it as if she is reaching for the hand of God. Carrie narrates "It was Leonardo DiCaprio, ex machina". Leo (who is never actually seen) and Sam become fast friends and Leo brings her back to social life.
 * The character Fallon, in film adaptation of The Prestige while remaining in the background for primarily the entire time, is thrust into the spotlight once the film as reached its climax and Borden is about to executed. A shift occurs in which a realization has been made that 'Fallon' was the twin brother of Borden towards the conclusion of the movie. He [Fallon], seemingly is the one that is hanged instead of Borden, which gave him the chance needed to exact revenge and reclaim his daughter.
 * Close to the end of X-Men: The Last Stand, Warren Worthington II is thrown out the window of his lab by the Brotherhood of Mutants, intending to destroy his mutation cure. He is rescued by his son Warren Worthington III, known as Archangel in the comics, who literally flies in out of nowhere and rescues his father in midair.
 * At the end of Home Alone, Kevin MacCallister is captured and held against the wall by Marv and Harry, who threaten to torture him as payback for the traps in his house. Mr. Marley appears out of nowhere and knocks them both out, saving Kevin.
 * MacGyver was notable for having the title character create many seemingly implausible spur of the moment inventions that could be considered deus ex machina. This aspect is the most widely spoofed element of the series.  One example was during the opening sequence of Legend of the Holy Rose (part 1), where he rescues a prisoner from a mountainside camp.  He builds a fully functional biplane out of an old aeroplane propeller engine, bamboo, rope, tarpauline, and other miscellaneous parts in a few hours.  He proceeded to then fly out with both himself and the prisoner.  In spite of both the lack of rigid materials and the hail of assault rifle fire from the soldiers stationed at the camp, the make-shift aeroplane works well enough to fly a considerable distance to safety.
 * In M. Night Shyamalan's film Lady in the Water, the Scrunt lunges forward to attack and kill the Guardian. But before it reaches him, the Tartutic leaps out from nearby trees and attacks the Scrunt before dragging it away (presumably to kill it).
 * In Kamen Rider Ryuki, all 13 Riders are killed; however, Shiro Kanzaki, who was responsible for creating the Advent Cards and the Mirror World, decided to "reset" where both he and his sister, Yui, never existed, thus all the victims, including the Riders, are brought back to life with no recollection of being a Rider. This ending was considered "annoying" by many fans because the protagonist was killed before the final battle took place and the result of the battle was a reset.  It's unclear if the "adapt" series, Kamen Rider Dragon Knight will follow the same formula.
 * Episode 42 of the Pokémon anime states that Electabuzz and Scyther react violently to the color red, but this fact isn't emphasized anywhere else. And in "Bulbasaur, the Ambassador", Ash's Bulbasaur uses "Dig" to avoid getting crushed by a boulder while being stuck in a pit.

Examples for comic effect in plot
This is not specifically the use of the device in comedy, but the specific comedic use of a deus ex machina that at least some of the audience is expected to appreciate as such.
 * In Moliere's l'Avare, a very rich and obscure character only briefly mentioned before appears without any reason and by an incredible story turns out to be the father of two characters, as well as a friend of Harpagon, the Miser. He is willing to pay for the happy ending by taking care of the wedding expenses, everyone's dowries and even buying a new suit for Harpagon. This mocks certain comedies of the time in which an irrelevant character turns out to be everyone's father.
 * In The Spongebob Squarepants Movie, while Spongebob and Patrick are being chased by a monster, a larger monster suddenly appears to eat the one that was chasing the heroes. This is also the opposite of a deus ex machina, because the monster subseqently eats the car the heroes were driving.
 * The writers of Monty Python's Flying Circus admitted to using several deus ex machina devices when they were unable to find a conclusion to a particularly ridiculous sketch. Three of the most famous were "The Colonel", where Graham Chapman would enter dressed as a colonel and tell them to stop, saying the sketch was "silly", "The Knight with the Chicken", where a fully-armoured Knight, played by Terry Gilliam, would enter the scene and hit one of the actors over the head with a raw or rubber chicken, and "The 16-ton Weight" which would suddenly fall to end a scene.
 * Monty Python and the Holy Grail employs the device, in combination with "breaking the fourth wall" in several places. While attempting to enter a cave, the knights of the Round Table are attacked by a bloodthirsty rabbit which they can't overcome...but they manage to kill the deadly beast with the Holy Hand-Grenade of Antioch, its bearers (let alone the device itself) never having been referred to before. Having entered the cave the knights are then attacked by the Ravenous Black Beast of Arrrgh, with no apparent hope of survival. At this point, it is revealed by the narrator that the film's animator suffered a fatal heart attack, obliterating the animated monster. Later, the film's final battle sequence is suddenly interrupted by the appearance of the police, who immediately arrest the entire on-screen principal cast of medieval characters (although there were scenes during the movie showing the police on their trail).
 * Monty Python's Life of Brian also utilizes the deus ex machina for comedic effect. In one scene Brian falls from the top of a high tower, only to be saved by an alien spaceship that happened to be passing. He is taken on a joy ride through the solar system before the space ship is shot down and crashes at the foot of the very tower he had just fallen from. A bystander who witnesses all this remarks, "Ooh, you lucky bastard!"
 * At the end of the film This is Spinal Tap, a declining heavy metal group is rescued from the brink of ruin when one of its earlier albums reaches the top of the charts in a non-English-speaking country. While not truly a "deus ex machina" ending (earlier scenes establish them as talented musicians and composers despite being thoroughly execrable lyricists), this is an obvious attempt to satirize the tendency of some filmmakers to tack on such incongruously happy endings.
 * In the cartoon The Angry Beavers, at the end of the episode "Moby Dopes", during which the two main characters are terrorized by a Killer Whale in their pond, the whale is suddenly eaten by a Tyrannosaurus rex. The character Norbert then exclaims "Where in the name of deus ex machina did that T-Rex come from?"
 * In the Futurama episode Godfellas, Bender is returned to Earth by God after being stranded in space with no hope of rescue. He crashes to Earth a few feet in front of Fry and Leela, provoking the response "This is by a wide margin the least likely thing that has ever happened" from Leela. It should also be noted that this would also be a reverse of the literal translation of the phrase deus ex machina, God from the Machine.
 * In the British sitcom Bottom, Richie and Eddie are trapped atop a crumbling ferris wheel. Facing certain death they pray for their lives - literally. God's hand promptly appears and Richie and Eddie, looking stunned, climb aboard. Normality is restored when they announce to the audience they don't believe in God; the hand disappears and they fall to their doom.
 * In the Disney movie The Emperor's New Groove, a chase occurs where the Emperor Kuzco (who has been turned into a llama) and his friend Pacha are being pursued back to the palace by Kuzco's evil advisor Yzma and her assistant Kronk. During the chase, Yzma and Kronk are struck by lightning, and fall into a gorge, leaving Kuzco and Pacha seemingly free to return to the palace. Upon their return, they discover that Yzma and Kronk are already there, and when Kuzco asks Yzma how they got back before they did, she looks confused and asks Kronk. Kronk pulls out a map of the chase and says "You got me. By all accounts, it doesn't make sense.", showing the characters' awareness of the deus ex machina that has just been perpetrated. Later, the characters are battling over the potion to return Kuzco back into a human, and Kronk opens a hatch on the top of the palace, commenting, "What are the odds that trap door would lead me out here?", knocking the potion out of Yzma's hand and into the hoofs of Kuzco.
 * Most of Gilbert and Sullivan's operettas use a deus ex machina to resolve hopelessly complicated situations and tensions whilst also satirizing British culture. Without this device, most of the stories would require either bittersweet or tragic endings.  Popular uses include absurd extensions of the laws of logic, as used in The Mikado, Ruddigore, and Utopia, Ltd., to parody English Common Law, or a revelation as used in The Pirates of Penzance, The Gondoliers, and Iolanthe.
 * Near the end of Anchorman: The Legend of Ron Burgundy, Ron Burgundy and Veronica Corningstone are trapped in the bear pit at the zoo. Ron's dog, Baxter, comes out of nowhere and speaks to the bear's honor through the clever use of subtitles. The bear lets them leave.
 * The film adaptation of George of the Jungle and its sequel contain several deus ex machinas. When Lyle, Ursula, and their convoy are crossing a large rope bridge over a deep canyon, Lyle shakes the bridge and accidentally causes one porter to fall over. The narrator interjects with "Don't worry, nobody dies in this story.  They just get really big boo-boos." The scene then cuts to the porter with bandages over parts of his face, and the narrator says "See? What did I tell you?" Later, George is shot by Lyle. But the narrarator notes that George survived simply because he is the hero of the story and it would not go on without him. Similarly, in the sequel, Ursala's mother travels through the depths of the jungle to find her daughter. She annoys her convoy of natives so much that they cast her off a bridge over a high cliff; however the narrator resets the situation after explaining that she needs to be alive for the story to progress, to the disappointment of the convoy. In one ultimate deus ex machina, Lyle has George at gunpoint and none of the characters are able to do anything. As the narrator comments on the situation, Lyle insults him. Annoyed, the narrator reaches down from the sky and plucks Lyle out of the story.
 * Megas XLR ended many of its episodes with a deus ex machina. In one episode, Coop had a button on his console specifically labeled "5 Minutes Till End of Episode", which quickly reversed the flow of the battle. Additionally, Coop has several other buttons on his dashboard for comically specific purposes, such as a "Destroy Moth-Like Bug" button and a "Save the World" button; however, he may not always use them when he has the chance.
 * In the movie Beerfest, after a member of the protagonist's drinking team is killed, his twin brother, who up to that point had never been mentioned, replaces him, even utilizing his nickname. One of the other team members remarks that it was as if he had never died.
 * A sketch in the radio show That Mitchell and Webb Sound (and more recently, the TV sketch show That Mitchell and Webb Look) was a spoof on crime-fighting duos. The duo featured were called Angel Summoner and BMX Bandit, and appeared in a series of short segments within the show.  Each segment involved a crime situation where BMX Bandit would outline how he would use his BMX skills to take out the villains, and how Angel Summoner could assist.  This was always met with Angel Summoner saying "Yes...or I could just summon a horde of Angels to do the job for us".  This was always met with disappointment from BMX Bandit, who never got a chance to save the day.
 * Some episodes of The Simpsons have employed deus ex machina as a way of getting the writers out of an impossible situation, by having the action take place off-screen. An example of using this for comedic effect may be seen in Monty Can't Buy Me Love.  Mr. Burns, rolling up his sleeves getting ready for a fight, approaches the Loch Ness Monster with the intent of capturing it.  The scene cuts to a helicopter carrying Nessie, with Homer Simpson congratulating Burns.  Burns is very dismissive, saying that the hardest part was getting himself swallowed, but after that "...well, you know the rest".
 * The final episode of "Crossroads", a British TV soap opera featured an amusing deus ex machina. The show had been cancelled due to poor ratings so the producers decided to end the show on a joke- a fadeout revealed the entire 25+ year run of the show had been a daydream by a bored supermarket worker. Given the occasional past crossover episode with other shows, a great deal of all British TV must have been part of this shopworker's dream!
 * In Yu-Gi-Oh, when Yugi, Bakura, Tea and Tristan were being chased by a boulder they hit a dead end. Tristan ties to stop the boulder himself with a punch, actually destroying the said rock. It was revealed to be only a balloon with speakers inside. Also during many duels where the antagonists have a powerful monster or card, he somehow always has a card that defeats them and wins.
 * The fourth series of the BBC Radio 4 comedy Revolting People used a couple of examples. At the start of the series, the "It was all a dream" ploy was used to reverse the revelations made at the end of the previous series.  In another episode, Samuel Oliphant just happens to bump into his estranged sister quite by chance, many hundreds of miles from where he was hoping to find her.  In both of these examples are followed by conversations which make it clear that the writers recognise the ridiculousness of using these plot devises.
 * In the Stargate SG-1 episode 200 various plot ideas were run past the SG-1 team. This included a scene where the team were racing to the Stargate whilst being chased by the replicators, with only "10 seconds before the time dilation field kicks in and we'll be trapped here forever!".  The team then realize that they were cut off from the gate by an entire Jaffa army.  The scene then cuts to the base with the team exiting the wormhole with the comment "Well, that was close".  It is worthwhile to note that a number of other plot clichés were also referenced and ridiculed in this episode, including jumping the shark.

References to the phrase

 * A USC student, Jason Loniak, designed a futuristic motorcycle and called in Deus ex Machina.
 * At the end of the film Dodgeball: A True Underdog Story, the film's deus ex machina, a treasure chest containing the main character's gambling winnings has the phrase "Deus ex Machina" written on it.
 * Deus Ex Machina is the name of the ship Joel Robinson uses to escape from the Satellite of Love on the television show Mystery Science Theater 3000. It should be noted that the escape ship was not so mysteriously discovered inside a box labeled Hamdingers.
 * An episode of Stargate SG-1 is called "Ex Deus Machina". This is a play on words to mean "former god".
 * In Nadia: The Secret of Blue Water Deus Ex Machina is the name of one of the flying ships that Gargoiles from the Neo-Atlantides used to attack the Neo-Nautilus.
 * The 19th episode of the TV show Lost is called "Deus Ex Machina". In the episode Locke dreams about a crashed plane, located somewhere on the island. He believes that if he finds the plane, the answer to his problems will present themselves, specifically how to open a mysterious hatch buried under the ground. The plane is found, but does not directly reveal any answers, and instead leads to the death of Boone; however, at the end of the episode a bright light shines from the hatch. The suggestion is that Boone has been "sacrificed" to the island, in the fashion of an angry god.


 * With intentional irony, the machine figurehead in The Matrix Reloaded and The Matrix Revolutions is named the Deus Ex Machina.
 * In The Simpsons episode "Thank God It's Doomsday", after the rapture occurs and Homer Simpson is taken to heaven, he asks God to reverse what has happened. God agrees, then proclaims "deus ex machina" and normality is restored magically.
 * In Olive, the Other Reindeer, a movie by Matt Groening, Olive finds a package marked, "To: Olive, From: Deus ex Machina". It contains a metal file which she uses to free herself from captivity in the back of the evil postman's truck. When asked how she escaped, Olive says "Have you heard of Deus ex Machina," to which the reply is "no." Olive then says, "Look it up."
 * In The Daily Show segment, "This Week in God", Steven Colbert (Rob Corddry, after Colbert left the show) uses "The God Machine" (also called the Machina Ex Deus) as a physical, floating button to introduce the topics.
 * In the show Angel, characters (such as Cordelia) often have prophetic visions given by the godlike Powers that Be, which can serve as a deus ex machina. At one point, when a ritual to re-ensoul Angel that she sees in a vision fails to work, Lilah refers to it as a "duds ex machina."
 * In the film Adaptation., when Charlie tears down his list of Robert McKee's 10 Commandments, the 7th one reads: "Thou shalt not use deus ex machina to get to thine ending."
 * In the season 3 episode of Star Trek: Voyager entitled "Worst Case Scenario," Tuvok and Tom Paris become trapped in a holo-novel in which a holographic Seska is trying to kill them. Outside the holodeck, Captain Janeway introduces new elements to the story to help Tuvok and Tom escape.  After the situation is resolved, Janeway asks rhetorically, "Who says deus ex machina is an outdated literary device?"
 * The YouTube channel CinemaSins frequently uses variations of the phrase "deus ex machina" in their "'Everything Wrong With...'" videos. One example of this is in their video "Everything wrong with 'Spiderman 3'", they refer to the scene, in which The Hobgoblin appears suddenly and throws a Pumpkin bomb at Sandman (comics) by calling it "Goblin ex machina".

Examples in plot

 * In Super Metroid, as Samus Aran is about to be killed by the Mother Brain the last metroid appears to temporarily paralyze the Mother Brain, and restore full power to Samus along with giving her the hyper beam. The Mother Brain wakes up, and destroys the metroid.
 * The Metroid series as of recently is also a good example of using reverse deus ex machina. Because the games have a heavy emphasis on collecting upgrades for Samus's power suit, they now come up with new ways of invalidating Samus of all her upgrades from the previous game to start anew.  This includes being knocked into a wall by an explosion, having the upgrades stolen by the antagonists, having a parasitic organism require removing infected modules, etc. This is sometimes called the reset button technique.
 * In the Tekken series of video games, several members of the Mishima family have been the victims of acts of violence that would kill almost any human being, and very often that would be the resolution of the conflict which the game was based around. For the character Kazuya in Tekken 4, the deus ex machina is the G Corporation, had "brought him back to life" after being thrown into an active volcano. The other example is the so-called Devil Gene, that apparently renders the bearer immortal. In Tekken 5, Heihachi - who had displayed no previous Devil-Gene related powers - survives an explosion which obliterates an entire building and hurls him several miles through the air, with no other explanation given than him being "No ordinary man"...
 * In Metal Gear Solid, the ending finds Solid Snake and a companion trapped under a crashed Jeep after attempting to escape Liquid Snake and the bombing of the island. Liquid, armed with an assault rifle, staggers forward, about to kill the two. A virus known as "FOXDIE," unknowingly injected into Solid Snake to spread throughout the base, activates, causing Liquid to suffer a fatal heart attack. It is later revealed in a special section of the sequel, Metal Gear Solid 2: Sons of Liberty, that Naomi Hunter, the woman who programmed FOXDIE to kill Solid Snake because he killed her brother, Gray Fox, set FOXDIE to randomly activate at no predictable time after it came into contact with Snake's DNA. Liquid and Solid were both clones of the same man, and therefore genetic twins. Prior to FOXDIE, Liquid appeared somewhat immortal, surviving falls and explosions that would've killed a normal man with virtually no apparent injuries.  The bombers sent to destroy Shadow Moses were apparently recalled at the last minute.
 * In Metal Gear Solid 2, when Ocelot reveals that he was working for the Patriots, he is about to use Metal Gear RAY to kill Snake, Solidus, and Raiden, but a series of Deus ex Machinas prevent this. First, Fortune, whom Ocelot had shot through the chest, stands up.  Ocelot recalls that her heart was actually on the right side of her chest, a previously unmentioned plot element.  Ocelot launches a series of missles, but Fortune deflects them in the same manner she deflected bullets earlier, yet it was revealed that her "luck" was simply provided by an electromagnetic device that Ocelot had stolen from her.  Fortune dies, and Ocelot is about to RAY's hydrocutter to kill the cast when suddenly, Liquid Snake, who had displayed an erratic ability to take over Ocelot's body, possesses him.  Despite harboring deep hatred toward his brothers, instead of killing them, Liquid uses RAY to dive off of Arsennal Gear.
 * In Metal Gear Solid 3, when Snake needs to change his face to look like an important GRU officer, he can use the mask that has been in his inventory from the beginning of the game. The explanation given is that the mask was made for another infiltration-mission that never got off the ground, and that Sigint packed it with his equipment just so it "wouldn't go to waste"...
 * In Halo 2, the Master Chief is thrown into a lake by an explosion, to an almost certain death, however a mysterious alien entity known as 'Gravemind' retrieves him and transports him to safety. Meanwhile, The Arbiter (the game's other protagonist) is thrown down a chasm to his death in an entirely different location, but is somehow rescued by the same entity and taken to the same location.
 * The ending to Conker's Bad Fur Day is a double deus ex machina. Firstly, when the "alien" leaps at Conker to kill him, it freezes in midair due a glitch in the game. Then in order to defeat the "alien," Conker gets help from an imaginary game programmer who gives him weapons.
 * In Jade Empire, during the final combat sequence of the game, a dead character named Sagacious Zu helps the player from within the spirit world.
 * In EarthBound, Ness' progress through an area is blocked by a statue of a pencil. After returning to Twoson, Apple Kid calls Ness proclaiming that he has just invented a "Pencil eraser", which eliminates all pencil shaped objects nearby. A while later, Ness and Jeff battle an enemy known as "Clumsy Robot," which refuses to die (you keep damaging it, but it will eat a bologna sandwich and recover its hit points). It isn't until later that the jazz group Runaway Five runs into the room and switches off the robot, instantly defeating it.
 * Throughout the Resident Evil series, a recurring theme is that the character receives a rocket launcher or a similarly powerful weapon from an ally while fighting against an otherwise indestructible creature (usually the game's final boss). In the original Resident Evil, the player receives a rocket launcher from a helicopter pilot (Brad Vickers) while fighting against the final boss, the T-002 Tyrant. Likewise, in Resident Evil 2, during either of the "2nd scenarios," the player receives a rocket launcher from Ada while fighting the T-003 Tyrant (a homage to this scene was featured in Resident Evil 4). Resident Evil 3: Nemesis and Resident Evil Code: Veronica featured similar situations, in which a weapon needed by the player was conveniently located nearby during the final battle (a railcannon and linear launcher respectively).
 * In Resident Evil 4, protagonists Leon and Ashley are implanted with the "Las Plagas" parasites by antagonist Saddler, with no visible means of extracting them thorough most of the game. It isn't until the very end of the game that the existence of a machine which destroys the parasites from within is revealed through one of Luis' research notes.
 * At the end of Half-Life 2, Gordon Freeman is saved by the mysterious G-Man who freezes time, seconds after Gordon destroyed the Combine citadel with him and his allies still in the building.
 * In Mega Man Zero, Zero is seemingly unable to defeat a boss, but an unknown spirit gives him a sword that can.
 * In the beginning of Mega Man X, X is about to lose a battle with Vile when, seemingly from nowhere, Zero fires a blast, severing the arm of Vile's ride armor, freeing X from certain doom. Later, X and Vile fight again, and Zero once again intervenes (at the cost of his life) to weaken Vile enough for X to destroy him.
 * In MegaMan Battle Network 5, Megaman.EXE is surrounded by the members of Nebula, set to overwhelm him. However, the fallen Navis of Team Protoman/Team Colonel break free from captivity to contain Nebula. Later, they all give Megaman their energy to assist in the destruction of NebulaGrey, which is supposed to be impossible to destroy.
 * In Starcraft, the Dark Templar serve the role of deus ex machina: the Overmind and the Cerebrates cannot be killed by conventional methods, they simply reincarnate in moments. It is only through the use of the Dark Templar's powers that this ability can be neutralized, and the Cerebrates and Overmind permanently slain.
 * In Prince of Persia: Warrior Within, The Prince, after killing Kaileena for the first time, seems desperate and angsty. Suddenly, while wandering the caverns beneath the Island of Time he finds a mural that shows he can go back and time and change his fate using an artifact called the Mask of the Wraith.
 * In Star Fox Adventures, during the final battle, Fox seemingly has no way of defeating the enemy, until suddenly, his friend, Falco Lombardi, who had been missing the entire game, swoops down and gives him a weapon to defeat the boss.
 * In Star Fox Assault, Peppy Hare crashes the Great Fox into the aparoid homeworld's shield, in order for the Star Fox team to get through. The Great Fox is shown exploding, seemingly with no way out for Peppy, but in the epilogue, it was revealed that Peppy miraculously escaped through some sort of escape pod.
 * In Descent: FreeSpace, a Shivan superdestroyer, the Lucifer, is equipped with an energy shield that renders it impervious to all Terran and Vasudan weapons. As Lucifer closes on Earth, survivors from a destroyed Vasudan science station land on a planet where they discover technology that will enable them to track Lucifer into subspace where its shields will not work. Also in Freespace 2, the GTVA Colossus saves the player from a deadly trap during its first appearance.
 * In Fire Emblem: Rekka no Ken, three Fire Dragons are summoned near the end. When all seems hopeless, Brammimond appears and revives Ninian, whom the Durandal, wielded but not controlled by Eliwood, killed earlier in the story. She then summons an ice storm which kills two Fire Dragons and severely weakens the other.
 * In Final Fantasy VIII, Squall and Rinoa are saved from death by exposure to hard vacuum by floating onto a previously unmentioned, unseen, abandoned spacecraft known as Ragnarok. The ship then becomes the party's aerial transportation for the rest of the game.
 * In Xenosaga II, as the battle against the Patriarch concludes, Albedo reforms and becomes infused with U-DO. KOS-MOS then activates her Tertiary Equipment, whose development was not complete, to stall the waves from Albedo. Ziggy then crushes a wall so the Elsa can miraculously rescue them, despite being nearly destroyed just seconds before.
 * In Golden Sun: The Lost Age, the Wise One appears at the final lighthouse in one last attempt to convince the team not to light it. He summons a three-headed dragon, which the team kills. They soon find out that it was a mutated fusion of Isaac's father and Jenna's and Felix's parents. All three were near-dead due to the battle. After the Mars Star was cast into the lighthouse, however, we find out that everybody survived the encounter due to an undercalculated burst of psynergy emitted when the beacon was lit. It is also discovered that the Wise One actually did want them to light the beacon, and merely wanted to see if they had the strength to keep going after terrible loss. This is arguably a deus ex machina.
 * Also in Golden Sun: The Lost Age, Alex makes his way to the top of Mount Aleph to absorb the power of the Golden Sun, which was comprised of the energy from each of the four beacons. Believing that he had infinite life and power from absorbing the energy, he was defeated by the Wise One, who said that Alex did not absorb the full power of the Golden Sun, because he imbued the Mars Star with some of it, transferring that portion into Isaac.
 * In Star Ocean: Till the End of Time, the main characters realize that their troubles are caused by glitches in the fourth dimension &mdash; a society that created the third dimension for entertainment purposes.
 * In Final Fantasy VII, the Lifestream arrives at the last moment to save the game's world from destruction via a giant meteor.
 * In Final Fantasy IV, the protagonists are trying to prevent the evil Golbez from obtaining all of four magic Crystals, under the belief that he will become unstoppable once he has them all. However, after Golbez steals the fourth crystal, it is revealed that there are in fact four more "Dark Crystals", never before referred to, and therefore additional opportunities to stop Golbez.
 * In "Super Mario Bros. 2': Mario finds himself in a strange world which is dramatically different than others in the series. At the end of the game, Mario and his friends trounce Wart and open a secret room containing one of Subcon's characteristic vases. After pulling a stubborn cork from the mouth of the vase, eight red fairies spring out. The four heroes are lauded for defeating Wart, whose beaten body is passed over the crowd and tossed aside. Immediately after, the screen shows Mario snoring, indicating that the entire adventure had been a dream.
 * Mario and Luigi: Partners in Time: Once the Mario Bros. and Baby Mario Bros. reach the top of Thwomp Volcano, the volcano erupts, forcing the player to go down to the house of the young Prof. E. Gadd. After putting out the flames of a big Thwomp, the professor thanks them and leaves.  Stuffwell then shows up announcing he's receiving a transmission from the present-day Elvin Gadd.  E. Gadd tells the Mario Bros. that he just invented the Hydrogush 4000, A powerful machine that can put out the flames of an erupting volcano.
 * In Pokemon Colosseum, the final boss Evice (Es Cade) attempts to escape in a helicopter. His efforts fail when Ho-oh suddenly appears, shooting a massive fire ball at the helicopter, sending it crashing to the ground.
 * At the end of Icewind Dale the narrator of the story was revealed to be Belheifet, the main boss of the game.

References to the phrase

 * A strange and in some ways groundbreaking game called Deus Ex Machina, created by a company called Automata was released for the Sinclair ZX Spectrum in October 1984, and ported to other platforms (ex., Commodore 64) later.
 * In Maken X, on the opening screen the words "deus ex machina" are heard, and the premise is a sword with the ability to control people and take any form, everyone it "brain jacks" is left in a sort of purgatory within the sword itself.
 * In Star Wars: Republic Commando, the final level aboard the Acclamator-class assault transport Prosecutor is called Deus Ex Machina. The player's commando team is required to defend itself against incoming droid squads, while slicing several computer terminals. Slicing the terminals turns on the Prosecutor's automated turbolaser turrets, enabling the Republic ship to defend herself against a Trade Federation Droid Control Ship.
 * In Armored Core 2, Deus Ex Machina is the name of an enemy 'AC' that you fight in arena mode.
 * In Mega Man X: Command Mission, the enemy boss Great Redips possesses an attack called Deus Ex Machina, which hurls several meteors on the player's party.
 * In World of Warcraft, the Paladin class of characters possesses an ability termed Divine Intervention, which both nominally and functionally references deus ex machina. The ability sacrifices the paladin to protect the targeted player from harm and remove the targeted player from combat. This ability represents the interference of an external force to effectively save a player from otherwise certain death.
 * In Advance Wars: Dual Strike, the main antagonist (Von Bolt) uses a Super CO Power called Ex Machina, which causes 3HP of damage in a small area and prevents affected units from moving. "Ex Machina" is fitting here since Von Bolt is connected to a life-support/computer machine.
 * In Final Fantasy X-2, the main antagonist Shuyin controls Vegnagun in one of the closing battles. An attack he uses is called Deus Ex Machina.
 * In Final Fantasy X, Rikku can gain a weapon called Deus Ex Machina, which has firestrike, icestrike, waterstrike and thunderstrike.
 * Also in Final Fantasy X, there is an FMV sequence titled "Ex Machina" in which the Crusaders and Al Bhed try to destroy Sin, which ends up useless.
 * In the fictional Warhammer 40,000 universe and table top game, the chapter approved 2001 temporary revision of the Space Marine Land Raider tank, included the additional rule “Dues Ex Machina” to give it, in at least the developers' view, a needed boost. This was later changed to “Power of the machine spirit”.
 * In the YouTube series Yu-Gi-Oh: The Abridged Series (Episode 4), Yami enters a duel with Weevil, and one of the cards he plays(originally called Polymerziation) was renamed "Deus ex Machina".
 * In the RPG videogame Mega Man X Command Mission During the battle with Great Redips at the end of the game, one of his attacks is "Deus Ex Machina"
 * In Deus Ex (the title itself a reference to the phrase), part of the story concerns an artificial intelligence (known as Helios) that believes its destiny is to rule mankind as an omniscient, omnipresent, and omnipotent being. Thus it is truly the titular god from a machine. Another interpretation is that the main character JC Denton by changing the world (i.e. curing the plague) is the 'god from the machine' that changed the world for the better. Also since he is cybernetically enhanced and genetically engineered, he is literally a god from a machine.

Music

 * Deus ex Machina is an Italian avant-progressive rock group formed in the late 1980s who sing in Latin.
 * Norwegian singer Liv Kristine (former member of Theatre of Tragedy, now Leaves' Eyes) named her first solo album, released in 1998, "Deus Ex Machina".
 * The Smashing Pumpkins album MACHINA/The Machines of God (followed by an internet-only release MACHINA II/The Friends & Enemies of Modern Music) took its title from an abbreviation of the phrase. Frontman Billy Corgan wrote the concept album based on the media's exaggerated characterization of the band members. "La deux Machina" is also the name of an unreleased instrumental track recorded in the "MACHINA" studio sessions.
 * Deus ex Machina is the title of a track from the German metal band Schmerz's self-titled album.
 * Deus Ex Machinae is also the name of the first album released by the SID metal band Machinae Supremacy.
 * Electric Skychurch has an EP entitled Together in which the first song is entitled Deus and the last Deus ex Machina.
 * Deus ex Machina is the title of a track from William Orbit's classic 1993 album Strange Cargo III.
 * Deus Ex Machina is the title of a track from Mars Volta's guitarist Omar Rodriguez-Lopez solo project called A Manual Dexterity: Soundtrack Volume 1 released in 2004.
 * La Muy Bestia Pop a Venezuelan industrial/experimental-rock band has an album entitled Deus Ex Machina
 * Moi dix Mois's album Beyond the Gate includes a song titled Deus ex Machina.
 * Deus ex Machina is the title of a track from the Brighton-based artist Backini's second album Re:Creation.
 * Also a song by the band Laibach, on their album Jesus Christ Superstar.
 * "Deus Ex Machina" is a song by Quebecois cyber-metal band Obliveon.
 * "Ex Machina" is the title of a 1998 7" album by the science-fiction-surf-punk band Man or Astro-man?.
 * Diva ex Machina is a compilation of female (diva) vocalists performing industrial (machine) music from the late 1990s.
 * Deus sax machina is the name of a saxophone sonata by composer Gregory Wanamaker.
 * The hip hop artist Ivan Ives released an album entitled "Deus Ex Machina" on June 20, 2006. Much of the content deals with the term in a more literal, sinister way.

Other

 * In the card game Munchkin, one powerful weapon is called the "Deus Ex Machinegun".
 * In Camperdown, Sydney, Deus Ex Machina is a motorbike customisation company, that uses new Yamaha bikes as the basis for TT and cafe racer style tourers.