Follow TV Tropes

Following

Diabolus ex Machina

Go To

https://static.tvtropes.org/pmwiki/pub/images/sinfest_bad_ending.png

"This is not the convenient plot twist that saves our heroes. This is the convenient plot twist that makes them even more screwed."
Advertisement:

Diabolus ex Machina (Devil from the Machine) is the Evil Counterpart of Deus ex Machina: the introduction of an unexpected new event, character, ability, or object designed to ensure that things suddenly get much worse for the protagonists, much better for the villains, or both. This could also be called Acute Dramatic Necessity Disorder.

Observers of this trope should note three things:

  1. Diabolus ex Machina is often brought in simply because if the villain were to lose, the story would be over. Like the Deus ex Machina, it only applies if it comes out of left field.
  2. Like the Deus ex Machina, a Diabolus ex Machina does not necessarily occur at the end. Though it often overlaps with Ending Tropes, it should not be confused for one.
  3. The Diabolus ex Machina, while a very common Pet-Peeve Trope when used for a Downer Ending, can be pulled off — see the entire "Rule of X" series of tropes.
Advertisement:

If a movie ends with a "Take a Moment to Catch Your Death" for the last surviving character, it may be this. Also see Not Quite Saved Enough. Compare Diabolus ex Nihilo, Ass Pull, and Cruel Twist Ending, as well as Life Will Kill You. Often the cause of a Sudden Downer Ending. Likely to be employed by writers who believe that True Art Is Angsty.

Please note that the examples below will contain lots of ending spoilers, as many tend to be on the tail-end of stories. But we'll try to keep you from getting too spoiled.


Advertisement:

Examples:

    open/close all folders 

    Comic Books 
  • It's also a favorite of The Walking Dead. Was it really necessary for Rick to lose his hand, his wife, and his newborn daughter?
  • A pretty stupid one from W.I.T.C.H.. Early in the series, the team's defeated Nerissa and, as an added bonus, made sure Will's deadbeat dad doesn't try to swindle money from her or her mom. As Will and her mother go to celebrate being safe from the latter, Will's dormouse races out of the house and gets ran over by a car. It's kind of hard to not presume Will's next quote, "Why does this keep happening?" wasn't a massive Lampshade Hanging to all of her problems at the time.
  • Messiah Complex. The X-Men have finally defeated all of their enemies and Scott has given the mutant baby to Cable to take into the future. Everything seems great. Until Bishop, who's been trying to kill the baby to prevent his horrible future, shoots at the baby and Cable. And Cable is already disappearing from that point in time, leaving the shot to go through and hit Professor X in the head. It really sucks to be a mutant. Granted he got better since this is a comic book and Professor X missing at the end was a hint.
  • Uncanny X-Force reveals that the Age of Apocalypse reality had been positively slammed with this, and off-panel no less, since we last saw it. The eponymous dictator was dead and everyone seemed to be starting to rebuild their lives... and then the Celestials showed up, judging that Earth must be destroyed. Wolverine cuts a deal with the Celestials: he will function as their agent on Earth if they spare the planet. The Celestials accept and transform Wolverine with their technology. Now, who was the last guy they did this to? Oh, right, Apocalypse himself. Needless to say, it doesn't end well: pogroms against baseline humans are initiated, Rogue and Magneto's preteen son is eaten by a villain, and by the end of the arc that reveals all this, only two of the reality's X-Men are left alive.
  • In the issue of Sonic the Hedgehog before the crossover with Mega Man, Sonic and his friends have found and retrieved Mecha Sally and Silver has finally understood the whole "Freedom Fighter traitor" deal was about... then Eggman hits everyone with the Genesis Wave and we're left at a cliffhanger which is aborted the moment the crossover ends.
    • The arc before the crossover was a series of these for Ixis Naugus: his bid for the throne happened on the exact same day that both Eggman and the Battle Bird Armada attacked for unrelated reasons. And even though some of his later schemes had failed and the fear and paranoia that allowed him to make his bid had died down, Naugus got another chance by possessing his apprentice. Of course, the crossover took care of all that.
  • The Smurfs story "The Hungry Smurfs" (and its Animated Adaptation counterpart "Haunted Smurfs") has one early on in the story, when the Smurf Village storehouse catches fire without any in-story explanation, immediately setting up the situation where the Smurfs are without food.
  • The Transformers: The fourth issue ends with one, on account of sales having been enough to keep the series going. So the Autobots are triumphant, the Decepticons having been disabled due to the action of one of their human friends, and everything looks good. Optimus is making a speech, and then BAM! Shockwave arrives and takes out what few Autobots were still standing with one shot.
  • A very confusing one in Vampirella: "Vampis Feary Tales - Metifa" shows a Deus ex Machina as this trope. Metifa, Satan's woman, just wants to show off to an old man by playing with fire. The old man is very unimpressed, demasks as God and smites her.
  • Occurs in a number of What If? issues from Marvel. One occurrence dealt with the story arc where Captain America became The Captain when the US Government had replaced him with John Walker. It looks like Cap's won in the what-if and everything's going to be great with him still Captain America when suddenly Red Skull orders his sleeper agent to shoot Captain America in the back of the head in the middle of the news conference announcing the positive resolution of things. Cap's promptly killed, Walker in taking his place ends up going on a bloody rampage, the identity of Captain America is retired and Red Skull sits back sipping his wine reveling over his victory.
  • Blue Is the Warmest Color: Just as it seems that Emma and Clémentine are going to be happy together, it turns out that Clémentine has been dying of a heart disease all along without realizing it. The drugs that she took made her heart even worse.

    Comic Strips 
  • In Funky Winkerbean, Wally (nephewnote  of the title character) has just returned from a trip to Iraq, with his new bride and newly adopted orphaned waif in tow. The future looks bright for the young Winkerbeans... until Wally gets a letter from the Army telling him that he was technically A.W.O.L., because his discharge was issued one day too early. As a result, Wally is ordered back to active duty to serve a full year's tour of duty. The readership was pretty sure that discharges don't work like that (even the ones incorrectly filed) and could've fought the order if he wanted (and almost certainly won). But he fought the war instead. As an extra kick in the metaphorical nads, Becky finds out she's pregnant just in time for Wally to get shipped off. An extra EXTRA kick was administered when the second Time Skip came about and Wally was nowhere to be found. Turns out that for the entire second Time Skip, Wally was held captive by insurgents.

    Ironically, the author's complete ignorance on military discharges was such that he overlooked an entirely legal way to suddenly recall Wally to service. All initial enlistment contracts are for eight years of service obligation, not four. The typical arrangement is only four years of active duty and then four more years of "Individual Ready Reserve" status, the practical upshot being that short of medical disability, Bad Conduct Discharge, etc., you can be yanked back in entirely at their discretion up until eight years have passed since your initial enlistment. The recruiter is required to make darn sure you understand this before you sign.
  • Peanuts:
    • If you're going into the funny pages, Charlie Brown learned that the demon of heartbreaking sports losses can attack after the end of the game, when he has a rare win stripped from him over a "gambling scandal" (Rerun betting Snoopy a nickel that they would win).
    • Also, the fire that destroyed Snoopy's doghouse in 1966 seemed to come out of nowhere.
  • Curtis: *GULP!* It's Derrick and "Onion"!

    Fan Works 
  • The cheesy yet fairly popular Half-Life fanfic series, Half-Life: Full Life Consequences, uses this as a Sequel Hook: The first installment ends with "the next boss" coming out of nowhere and stepping on Gordon Freeman, setting up for a sequel that centers around John Freeman hunting down the next boss. Adding to the bizarreness, our heroes had just defeated the "Final Boss", which by all rights should preclude any more bosses showing up.
    • And the second installment, after the defeat of the evil boss, ends with the dead Gordon Freeman becoming a zombie goast.
    • This is followed up with a glorious Deus ex Machina in the third chapter, when even further into the future, John Freeman descends from the heavens to assist his son in defeating the Combines and sending them back to science and outer space.
  • Star Trek: Voyager Virtual Season 8 uses one of these after the crew is almost home, getting them lost again in order to fix a few plot holes as well as to set up a more satisfying climactic battle in Virtual Season 9.
  • The Powerpuff Girls Dark Fic series Immortality Syndrome has several of these, but the biggest comes in Immortality Relapse at the climax, when Boomer Face Heel Turns and survives impalement long enough to trigger the death of the world.
  • There's a Crossover fanfiction for My Little Pony: Friendship Is Magic and Chris-Chan. One of the chapters introduces a device actually called the "Diabolus ex-Machina," which serves its purpose of throwing the direction of the conflict in favor of the villains. If that isn't enough Lampshade Hanging, the chapter it's introduced is called "Diabolus ex Machina? Never Heard Of It!"
  • In the Daria fanfic Triumph of the Retart, Daria and her new boyfriend, Author Avatar David MacAllister, are finally settling down after surviving David's run for Student Government President, during which he was the target of beatings and an assassination attempt. Just as it seems that they've earned their happy ending, David is killed by a suicide bomber.
  • Sonic X: Dark Chaos:
    • Episode 75. Two fleets - a Demon fleet and a Metarex fleet led by the Blue Typhoon - are facing off. Maledict and the heroes are about to have their final climactic showdown. And then Dark Tails suddenly appears, steals all the Chaos Emeralds, and uses them to fully manifest himself in the physical universe, beginning the real final battle.
    • The ending is one of these; Dark Tails' defeat allows the Forerunners to escape - and its implied that they quickly devastate the entire universe.
  • After waking up in a Britannian hospital in Pendragon in Nil Desperandum, Luluka manages to escape quickly and cleanly without being spotted by anyone. Then at the first intersection she comes to, her getaway car is struck by a drunk driver. Schneizel even notes that if not for that, they likely would have never found her again.
  • In the Neptunia fanfic Best Friends Forever, near the end a three-way fight between Neptune, K-sha and Noire is dying down, and although both Neptune and Noire are seriously wounded and Noire additionally exhausted from using NEXT form, Compa and IF have arrived and are patching up Neptune, and Noire is about to bring to plot to its resolution by confessing her love for Neptune. However, it turns out the reason why Compa and IF are there is because Uzume, Big Neptune and MAGES. are about to dimension warp over not only an Arfoire from a dimension she rules over, but also her top enforcers CFW Magic and Dark Purple.
  • Forged Destiny: In Book 6: Chapter 8, the Hunters have set up a reasonably well thought out trap to ensnare Roman, Neo, and Watts, all of whom are exhausted from their trek through the desert and have no way of even accessing the first temple. Even if they did have a way to enter the temple, they would have to outrun the Hunters close behind them while fighting through hordes of Grimm to reach the main complex. Even if they did reach the main complex, they still don't have any of the human sacrifices necessary to summon Salem. Through unexplained means, the villainous group both gains access to the temple without having to perform a blood offering, outruns the heroes while fighting Grimm, and have a large amount of sacrifices delivered to them presumably through a portal that is briefly seen when it was previously stated that portals shouldn't be able to access the temple.

    Films — Animation 
  • In The SpongeBob Movie: Sponge Out of Water, because Burgerbeard is able to rewrite reality to his will, he obtains the secret formula, empties the Patty Vault, and turns Bikini Bottom into a dystopia. He later strands the heroes on Pelican Island with the same method.
  • The Land Before Time: At the start of V: The Mysterious Island, a massive horde of locusts suddenly appears in the Great Valley and devours all the plants, thus kicking off the plot since the Dinosaurs are now forced to abandon their home and seek refuge elsewhere. These locusts come without any foreshadowing, and once they have ravaged the valley they simply disappear, never to be seen or mentioned again.

    Music 
  • Depeche Mode's song "Blasphemous Rumors" is about a girl who tried to commit suicide at age sixteen. She fails, and learns to love life again. Then she dies in an accident.
  • Countless country songs take advantage of this, often to a narmy extent. In fact, it's a common joke in the American south that if you play country music backwards, the singer's wife will return to him, bearing his dog and his truck intact.

    Professional Wrestling 
  • Michael Cole winning at WrestleMania XXVII. He was a non wrestling non athlete going against one of the all time greats with another all time great backing that one up, but "won" because the anonymous general manager decided to reverse the decision on the grounds Jerry Lawler had help, even though that "help" was just evening the playing field since Cole tried to get Jack Swagger to help him.
  • Bad Influence, their entire existence. TNA had Christopher Daniels and Frankie Kazarian in a blackmail storyline which looked so ready to become a blood feud, only to suddenly be turned around on AJ Styles so the two could ruin his life. Tropes Are Not Bad, as Bad Influence were very popular as a heel act, and everyone wanted to see AJ beat them up more than they wanted to see AJ spend time with Dixie Carter.
  • MVP's Beat Down Clan was a logical place to go, seeing as he had been a megalomaniac ever since his Face–Heel Turn in TNA. Kenny King had been with him from the start, even Bobby Lashley not being in on it was okay because he was at least implied to be more honorable than the other two. What knocked them into this trope was the entry of Samoa Joe and Low Ki into the group. Joe in particular had been feuding with MVP almost since the start of his turn and him maybe putting aside his differences with Lashley might have made sense but King had cheated during Joe and Bobby's last match so him taking King and MVP's side was even more baffling. Sure, they've been known to be part of a close-knit group of like-minded friends behind the scenes, and this was alluded to in the ensuing promos, but at least a small mention of the two having "worked out their issues" would've been nice.
  • Las Sicarias being infiltrated, beaten down and cheated out of a match by their sworn enemies C4 was largely the fault of their new recruits Mercedes Martinez and Thea Trinidad. Losing all their contenders to all SHINE title belts in the process though was the fault of the referee seeing Martinez choking out Allysin Kay during a three way title match, LuFisto arriving too late to stop her and giving LuFisto the winning pin fall anyway on a one count. It also wasn't the fault of Martinez that after SHINE officials all but admitted they had messed up they put Martinez in another match with Kay, who she basically already beat, rather than LuFisto who got credit for it. But the heels had apparently gone long enough without the clear advantage.
  • Finn Bálor turning heel in WWE NXT would've been shocking enough. That it had to happen at the expense of Johnny Gargano (who up until that point never had beef with Finn) in the middle of a Hope Spot while he and Tommaso Ciampa were staring down The Undisputed Era was rubbing salt in the wound.

    Tabletop Games 
  • To some BattleTech fans, Diabolus is behind the Jihad storyline. Let's see, the Clan invasion is finally called off, the Star League tentatively reestablished, and while there are still loose ends left over (like the threat of the Wolf Khan to come invading anyway once the original truce is up, or the aftermath of a nasty civil war) things finally seem to be ready to calm down a bit...but hey, we can't have that, right? This game isn't called PeaceTech! So the Star League declares itself a sham and disbands again for no good reason just in time to cause the suddenly uber-powerful pseudo-religious lunatics known as the Word of Blake to go Ax-Crazy and start pulling cyborg super soldiers, nuclear weapons, and other stuff out of their nether regions in an all-out war against everybody...
  • The ending to the Deadlands: Hell on Earth setting involved the PCs getting a chance to kill the Big Bads of the game. After going through a bunch of Railroaded scenes, they're presented with the opportunity to win and a ship to do so (but they have to sacrifice one of their own to the demonically-powered engine to do so). Then you get to a distant planet... and the ship crashes and the Big Bads are re-released. At least the Game Master should have been implying that this was the best possible result from the start; the can that had the Big Bads in it was always shaky at best. Guess who gets to hunt them down and finish the job now?
  • The entire universe of Warhammer 40,000 was probably made by Diabolus.

    Theater 
  • In the Richard Strauss opera Elektra, the title character, in the midst of rejoicing over the deaths of her mother and her consort, suddenly drops dead at the end for no reason except to bring down the curtain on a crushing downer note.
  • William Shakespeare is a notorious offender. For example, in King Lear Cordelia's death comes out of the blue, transforming the play into a tragedy in its final act.
    • King Lear, like many of Shakespeare's other plays, was based on earlier stories that his audience would have been familiar with. Lear and Cordelia don't die in those stories. Shakespeare killed them off because he wanted to surprise the audience. This ending was subject to a lot of Fanon Discontinuity in later centuries, and many performances ended with Cordelia marrying Edgar instead ... even though she already got married earlier in the play.
    • Romeo and Juliet is one Diabolus Ex Machina after another. This is even lampshaded; the line in the opening speech about them being "star-crossed lovers" is a reference to the practice of trying to predict the future using astrology, implying that Fate really is out to get them.
    • The famous Exit, Pursued by a Bear bear that appears in The Winter's Tale appears completely at random.
  • In Finale, the reveal that the world is ending in a week comes at the end of Act 2, and severely screws up everyone's plans.
  • At the end of Pass Over, a black-focused Setting Update of Waiting for Godot, Moses and Kitch seem to have earned their happy ending, but then Master, the previously friendly white businessman, suddenly reappears and guns down Moses, who dies in Kitch's arms.

    Video Games 
  • Kingdom Hearts 3D: Dream Drop Distance is especially infamous for this. Everything since the original Kingdom Hearts I endures a big Happy Ending Override as part of the Greater-Scope Villain's out-of-nowhere Stable Time Loop just to set up Grand Finale Kingdom Hearts III.
  • A lot of the moral choices in the second Army of Two game end this way. You either choose the "bad" option, or you choose the "good" option...except that the guy you gave up some advantage to save turns out to be corrupt AND selling weapons to terrorists. Or a guy you choose to save instead of killing in exchange for money is later killed in a plane crash accident.
  • The Force Unleashed 2 uses this in regards to the outcomes of its moral choices. At the end, Starkiller has beaten Darth Vader after he seemingly killed Juno, and the player is given the choice whether or not to kill him. And because all the play testers probably shouted "Why the hell would I not kill Vader now that I have the chance? I'm not Stupid Good like the Jedi," if you do try to kill him, a never before mentioned perfect Starkiller clone comes out of nowhere, kills you and all your friends (except Juno, she's already dead), and infiltrates the Rebellion in your place, leading to The Bad Guy Wins. Bear in mind, if you do decide to spare Vader, Juno turns out to be alive, and the clone seemingly doesn't exist. The latter point is handwaved by unlockables that state the clone was only ordered to intervene if Vader was in direct danger, but it is still a massive copout that saved the writers from having to give darkside choices realistic consequences, which the first game's bad ending was praised for.
  • The updated ending to Portal - The first independently mobile entity apart from Chell turns up just to drag her back right after you thought she was free.
  • In any game where a chopper is called in to rescue your party halfway through the game, it will probably get shot down or otherwise destroyed, as in Resident Evil 3: Nemesis, Dino Crisis, Resident Evil 4, or Modern Warfare.
    • Left 4 Dead had the infamous Chopper pilot dying at the end of the first campaign. It was nixed when many people found the ending too depressing and cheated out of their feeling of accomplishment. Ironically it was the fan backlash that caused Valve to create a filler campaign between No Mercy and Death Toll, reinstating what was taken out. They use this again in the sequel, to link all of the campaigns together. This meant that some sort of Diabolus Ex Machina would show up in the beginning of each campaign, serving as the Machina of the last campaign (this included a chopper pilot dying as well). And all those escapes turn sour because the Immune carry and spread the disease.
    • In Serious Sam 3, after seeing at least two choppers get shot down, (one of which he was ON at the time), Sam decides he's not going to get on any more choppers.
    • The Conduit actually jokes about it, where Ford's way off an oil rig is supposedly a Leviathan. The Leviathan destroys a helicopter flying over the base:
    Ford: ...And you're SURE there's no other way out of here?
    Prometheus: Well, there was a helicopter...
  • The path towards the fourth ending in Drakengard is shaping up to be a Bittersweet Ending, which, given the only other "good" ending is also bittersweet, doesn't seem too bad. After all, after finding out that the Creepy Child Big Bad is irredeemably evil even after the protests of her twin brother, the heroes have finally succeeded in killing her once and for all. Now the world is saved. Except, wait, something's falling out of the sky... Justified in that said Creepy Child was essentially the avatar or representative of said things falling out of the sky. We probably should mention that said things are pissed off as hell after she dies and with no seal holding them back, it's The End of the World as We Know It.note  The real kicker is the fifth ending. The heroes cross over into another dimension to kill the mother of all the aforementioned elderitch abominations. She and the heroes are transported to modern day Tokyo and, after a climatic boss battle, get shot down by missiles from an aircraft. And as Nier reveals, this leads to the extinction of the human race.
  • Apocalypse: Bruce Willis/Trey Kincaid has defeated the four horsemen, (i.e. the Dragons), and is about to take down the Big Bad Reverend. Unfortunately, he gets a Demonic Possession ex machina. Downer Ending. Or maybe intended to be a Cliffhanger leading to a Vapor Ware sequel?
  • Mortal Kombat:
    • Raiden's ending in the original Mortal Kombat. Evil vanquished: check. BBEG dead: check. Hey fellas; let's break the world ourselves!
    • And Reptile's ending in Mortal Kombat 4. Go through the entire game, win the tournament, and then your Bad Boss pops your head like a grape for asking for a reward. WTF? This always happens to him. The one time that he has a happy ending is in Armageddon.
    • Mortal Kombat 9 takes it even further. After destroying Quan Chi's Soulnado, thus saving the souls of Earthrealm, Nightwolf regroups with Raiden's chosen right as Raiden and Liu Kang go to have a chat with the Elder Gods. At that moment, the Cyber Lin Kuei attack. Then, a Brainwashed and Crazy Sindel shows up. This is where it all goes to hell. Remember that scene three chapters back in Stryker's chapter when Raiden torpedoed Motaro through a bridge to prevent him from killing Johnny Cage? Motaro's death caused Shao Kahn to take off his kiddie gloves and get serious. He uses Shang Tsung's soul(s) to empower Sindel, giving her a massive boost in strength. Sindel, in the span of less than a minute, goes to town on the heroes. Out of Nightwolf, Kitana, Jade, Cyber Sub-Zero, Smoke, Jax, Sonya, Cage, Kabal, and Stryker (Kung Lao had been killed by Kahn a few chapters prior), only Nightwolf, Kitana, Sonya, and Cage immediately survive; Kitana dies in Liu Kang's arms from her injuries and Nightwolf has to sacrifice himself to take down Sindel, right as Raiden and Liu Kang return from their meeting empty-handed. Afterward, the game switches over to Raiden for the final chapter, having him deal with the tragic repercussions of this event, including him accidentally killing the now-disillusioned Liu Kang, with Liu cursing at him in his dying breaths as he's lost his faith in the Thunder God, his former friend and mentor. And The Stinger reveals that Shinnok, Fallen Elder God and Big Bad of 4, is posed to strike a now vulnerable Earthrealm/Outworld, the implications being that he got a tip-off from his Armageddon self just like Raiden did and has been manipulating everything from behind the scenes, Quan Chi being his enforcer and eyes and ears in Shao Kahn's army. And for good measure, the rescue helicopter was also used to keep Sonya and Jax in the plot. Then Jax gets his arms ripped off instead of just upgraded, Sub-Zero gets roboticized because it had to happen to someone, and Scorpion is tricked out of his redemption.
  • Half-Life 2 Episode 2: After Gordon has whipped the Striders, a Combine Advisor shows up, immobilizes Gordon, Alyx and Alyx's father Eli, rapes Eli's brain to death by jamming a nozzle up his spine to suck the brains out, but is then stopped by Dog before he can do the same thing to Alyx or Gordon, leaving the game, instead of a happy ending, on a Kick the Dog moment.
    • Heck, look at Half-Life, if you decide not to side with the ostensibly evil G-Man, you're immediately dumped into the middle of a bunch of angry monsters with no hope of victory.
  • F.E.A.R. ends with the protagonist being extracted aboard a helicopter with a couple of NPC teammates. The helicopter suddenly lurches and Alma is seen climbing aboard an instant before the game cuts to the credits. Which are worth sitting through for yet another whammy.
  • In Call of Duty: World at War, the fake-surrendering Japanese soldiers who kill Roebuck/Polonsky at the end of "Breaking Point" in World At War could qualify, too, seeing as the mission had been a success up to that point, and Roebuck even said in the opening narration that they would all go home at the end. Even worse, you have to choose which one to save. In about a split instant.
  • Not quite the ending, but the climax of World 1 in Final Fantasy V is rather like this. Against all odds, you finally managed to get to the last elemental crystal in time, unlike all the other ones that ended up breaking. The bad guy's possessed puppet gets beaten back, there's a lovely reunion with one of the characters and his granddaughter, where he gets his memory of her back, and a reunion of two of the characters and their long-lost father... and then Bartz realizes that throughout the long reunion, they'd forgotten to turn off the Crystal-draining machinery and the crystal shatters. Of course if the Big Bad stayed imprisoned by its power there'd be no other 2/3s of the game.
  • Ultros of Final Fantasy VI is a Diabolus Ex Machina personified. Four times in the World of Balance, he comes out of nowhere to cause trouble for the heroes, including trying to drop a weight on Celes's head at the opera.
    • Kefka's rending of the world is another huge example, a huge example of a famous very well received Diabolus Ex Machina.
  • Disc 2 of Final Fantasy VII is a Diabolus Ex Machina strewn throughout an entire disc. Aside from Aeris dying at the end of disc 1, the party chases Sephiroth to the Northern Crater, where they prepare to battle him once and for all, until Sephiroth decides to break poor Cloud's mind and force him to learn that he's a failed experiment. This ends in Cloud handing over the Black Materia, and all hell breaking loose. So now, not only is Meteor looming, about to kill the world in one week, but the Planet has released its failsafe, a group of massive biomechanical creatures called the WEAPONs that are capable of wreaking serious destruction. So these monsters are on the rampage, the apocalypse is coming in a week, and the crew is slated for public execution. And the next time we see Cloud? Alive, but totally catatonic. Wow...
    • It was revealed 20 years after the game came out that there was originally a really extreme one. Nojima had the idea that the entire party should be killed off except for the two characters the player brought with them, and planned to use the part where the party parachute into Midgar to kill off everyone. Mercifully, Tetsuya Nomura talked them out of it, saying it was important to keep Aeris's death special by not just killing off characters at random.
  • Time Shift. You've killed the Big Bad, retrieved the only remaining temporal jump drive in your particular dimension, taken down a planet-wide fascist government, and even saved the girl. Then you cause a paradox.
  • Parodied in I Wanna Be the Guy. At the end of it, you defeat The Guy, take his gun, and return home triumphantly as the credits roll. You also walk under a tree with one of the game's deadly apples giant cherries on it, which falls. If you're not expecting it and don't move, it lands on you, killing you and giving you the standard Game Over screen even though it's after the credits. Fortunately the game still counts you as having beaten it.
  • Neverwinter Nights 2 has one of the most appalling Diabolus Ex Machina endings ever. Quite literally, Rocks Fall, Everyone Dies.
    • Remedied in the Expansion Pack that follows with you waking up afterward, albeit on the opposite side of Faerun, and you spend much of the game trying to figure out how the hell you got there. Also you wake up with an entirely new Diabolus in the form of the Spirit Eater curse.
    • The rocks falling is lampshaded later in Mask of the Betrayer by Ammon Jerro, in a rather hypocritical bit of humor.
      Player Character: I remember being disappointed that the fortress's structure wasn't more architecturally sound.
      Ammon Jerro: Yes. That powerful and evil beings insist on causing destruction even as they die is an unfortunate habit.
  • Fallout 3:
    • The finale of the main quest is especially guilty of this, capping a brilliant game with a totally illogical ending that forces the player to sacrifice his/her own life by entering a radiation-flooded room to save the world... even though your radiation-proof mutant friend is standing right beside you. That character will actually say something like, "This is your journey and I can't take it for you" or something similar. Jesus, Fawkes, just walk in and press the button so I don't have to die!

      Due to gamer outcry at this being one of the dumbest endings in gaming history, one of the expansion packs, specifically Broken Steel, changes this ending, allowing you to send in say, a highly resistant super mutant, a ghoul who is actually healed by radiation, or a goddamn ROBOT! And if you go in yourself you don't die. You can still send in the girl though, if you want to be a dick. The game will still chastise you for being a coward, despite the fact that you found a way to accomplish your goal and get everyone out alive.
    • The diplomacy path of the "Tenpenny Tower" quest. Sure, Roy Philips is clearly no angel from the moment you meet him, but there's no advance hint that he's bad enough to repay your getting him into the Tower by murdering every single human in the Tower for little to no reason.
  • Fatal Frame:
    • Fatal Frame: Miku has managed to collect all pieces of the Holy Mirror and managed to save her brother, as well as Kirie from her continued possession of the Malice. Kirie fulfills her duty as the Rope Shrine Maiden, keeping the Hellgate closed. Out of nowhere, Mafuyu decides to not leave with Miku, but remain behind with Kirie, so that she'll never have to suffer alone anymore. Cue the uplifting, though bittersweet ending to turn into an abrupt Tear Jerker ending.
    • Fatal Frame II: Mio finally finds her sister and is ready to leave the village. Suddenly, Mio gets possessed and strangles Mayu, completing the ritual they were trying to prevent from having to go through the entire time, and leaving Mio with huge guilt when she realizes what she has done.
  • The Baldur's Gate series has a variety of endings, depending on your action in-game. One of them involves the Protagonist giving up their divine soul and turning their back on Godhood in order to be with their newly-found True Love - who, in her aftermath/autobiography is brutally murdered by her vengeful kin, leaving the Protagonist to raise their child alone, embittered, and hell-bent on committing genocide as return. This even applies if the Protagonist was, for the previous 100 hours of gameplay, a Lawful Good Priest of Peace and Healing... This is especially silly given that even if that attack somehow worked (and by the end of the expansion everyone in the party is so powerful that there's virtually zero chance of that), the player character either had the power to raise the dead themselves as a virtual afterthought or they were such a legendary hero that they were owed favors by multiple individuals (including a few gods) who could easily do it for them.
  • The ending to Infocom's text adventure Infidel has always been somewhat controversial with fans because it's a good example of this trope being used to Shoot the Shaggy Dog. The protagonist (despite being selfish, greedy, and foolish) makes it to the pyramid's burial chamber to claim the riches ... only for the walls to collapse and trap him there to die. And this, after solving a bunch of very difficult puzzles (including a few 'learn by dying' puzzles).
  • As retconned in the intro to Turok 3, the destruction of Primagen in Turok 2 caused a explosion that destroyed the entire universe, which is what Joshua was trying to prevent in the first place, making that game somewhat of a Shoot the Shaggy Dog. Fortunately, the universe is recreated, and Joshua somehow survives and has offspring, only to be killed at the beginning of the third game.
  • Near the end of Fable II Lucien tells you he killed your family. There's no reason for him to do this, other than to set up the neutral choice for the ending.
    • Private Jammy is a soldier stationed at Fort Mourningwood in Fable III, named such for his good luck (he's been wounded a whopping total of 724 times). However, once the Hollowmen arrive, he invariably meets his demise no matter what the player does. His ghost then comes back to continue serving as the Hero's loader in the mortar mini-game. What a trooper.
  • FreeSpace 2 does this with a flourish: at the end of an arduous, complicated and desperate campaign to destroy the Shivan dreadnought Sathanas which threatens the (known) galaxy, you learn that the Shivans have about a bazillion more such ships.
  • Jak X Combat Racing. Non-fatal example, but after you've won the game, Rayn is suddenly revealed to have been manipulating you all along, wasn't poisoned, and oh yeah, she's now the biggest crimelord in the world. Well done, Jak.
  • Super Robot Wars: This almost hit Lamia Loveless as part of a plot just to see Kyosuke Nanbu getting Emo, but she got better eventually. Either her recovery was part of Banpresto's plan all along, or as a reaction of fans outraging at the Diabolus Ex Machina that they set on her just because her default story is done and they want to put some dark and edgy feel on OG. By OG Gaiden, it turns out to be subverted: Someone had to play a part of an adaptation of a certain plot point in Super Robot Wars Reversal about a respected dead character brought Back from the Dead and turned against the heroes (it was Master Asia that got this role originally), so they set up Lamia to do that role and in the end, not only she's recovered, the other Advance protagonist, Axel Almer, pulled a Heel–Face Turn to make sure that happens.
  • You just wiped all the gangs out of Paragon City and finished Crackdown. Now it's a police state run by your employer, which is another gang.
  • In Saints Row, under gang leader Julius, you destroy the three rival gangs in Stillwater and "unify" the city under the Third Street Saints. Then, with the help of the undercover cop in the Saints, Julius is captured by the police. They use him to blackmail the Saints into helping an anti-gang mayor get elected. Afterwards, when you confront said mayor to negotiate Julius's release, the two of you are blown up in an assassination attempt.
    • In the sequel, it's revealed that Julius set all of it up to dissolve the Saints and gang violence altogether: without his or the player's leadership, he knew the gang would fall apart and things would become more peaceful. Obviously, it didn't work, if only because the man didn't understand the concept of a power vacuum.
    • It's also revealed in the sequel that Dex, an ambitious ex-Saint, orchestrated a similar gambit during the finale, aiming to kill the player to destroy the gang (again), but for less noble reasons.
  • The World Ends with You: After surviving the Reaper's Game, Neku and Shiki discover that only Shiki can come back to life. Neku is fine with this, until the Conductor hits him with the whammy that in order to play the next game, the entry fee he has to pay is Shiki herself—and he only tells Neku this after he agrees to play the game, and the Conductor has "collected" Shiki. It's later revealed that the Composer, the Conductor's boss and the guy responsible for reviving people, was absent. In fact, the whole game was invalid because of that; only the Conductor knew the Composer was gone and would have been shafted if anybody, including his subordinates, knew. Thus, it was just a cheat to keep the two in limbo and prevent from being found out.
  • In Street Fighter Alpha 2, Charlie, who always dies in his endings due to Foregone Conclusion, manages to corner Bison, only to be shot on the back by his intended back-up chopper.
  • Oichi in Sengoku Basara 2 Heroes dies this way in her own story. On the other hand, The Anime of the Game Sengoku Basara... well, puts this on many many characters. Oichi included.
  • In the ending of Star Wars: Republic Commando, your squad has taken out a massive separatist gunship and are ready for evac. Then, out of nowhere (and off-screen), Sev reports he's under attack and you lose contact with him. Despite the protests of you and your squad, your commander refuses to let you rescue him, and you all get on your evac shuttle, leaving him to die. A lot of players hated Yoda for that.
  • Ameena's subplot in Star Ocean: Till the End of Time ends on a big one. Ameena, Ill Girl and blatant Expy of another flower girl, is finally reunited with her long-lost childhood friend. Then he dies (he was injured in battle a few scenes prior to this) and she succumbs to her illness seconds later. It's even more of a nightmare for the protagonist, since the girl was also virtually identical to his own best friend. Then Fayt's dad dies, then Earth is destroyed...
  • Aquaria pulls this in The Stinger: the woman in black- who hasn't done anything of significance since the Noob Cave- reveals herself to have been manipulating Naija in a Batman Gambit to destroy the Big Bad. She then wipes the Naija's memory and spirits her away from her new family, leaving her right back where she started- lonely, isolated, and amnesiac. This was supposed to be a Sequel Hook, which would have been annoying but okay in the end. But now comes word that the dev team has splintered and moved on to other projects- including one hyped as a Spiritual Successor. Nice Job Ruining A Perfectly Good Ending, Bit Blot.
    • The creator has admitted in this message board thread that there were never any fixed plans for a sequel, and that he wanted to avoid a happy ending, possibly making this an intentional example after all.
  • In Killzone 2, the ISA has busted their asses to get to and defeat Visari, only to find out that the Helghast have a huge reserve fleet coming.
  • In The Stinger of Syphon Filter: Logan's Shadow, Logan and Xing return to their hideout only to find Mujari dead and Teresa wounded by Trinidad, who then shoots Logan in a moment of Cutscene Incompetence, although he gets off a Last Breath Bullet. Xing starts CPR on Logan, and the story is left on a cliffhanger (which will never be resolved).
  • Dragon Age II: The Hawke family farm is gone, one of your new allies is dying of darkspawn taint, and just when you think it's safe to stop for a breather, an ogre comes out of nowhere to brutally smash one of your siblings into the dirt, reducing your party to you, your other sibling, and Aveline against the ogre and its hurlock buddies. And it's only the prologue.
  • Metroid: Zero Mission is a remake of the original Metroid that continues after the original ended. It accomplishes this by having Samus shot down by Space Pirates while leaving Zebes, destroying her ship and suit. This is followed up by an inversion in the form of an ancient Chozo temple giving Samus an older yet far more advanced Power Suit (the one she's pictured with in most incarnations). It even is capable of recognizing the incompatible Upgrades she received earlier in the game.
  • The Walking Dead:
    • Episode 5 combines this with Morton's Fork. Kenny will sacrifice himself to save someone else regardless on whether or not you saved Ben or let him die in episode 4. If Ben lived, then the balcony the group jumps off to get into the rooftops will collapse when he tries to jump it, causing Kenny to go down and sacrifice himself to ensure Ben gets a Mercy Kill out of guilt. If Ben died, then Kenny will live past the balcony, but will instead knock Lee's radio down an opening in one of the roofs later, one that just happens to be filled with walkers. Christa will go down and get it, but can't get back up. Kenny will then jump down and hoist her up, before running off and leaving his fate ambiguous.
    • Omid's death at the start of Season 2 Episode 1. If it wasn't for a random bandit showing up at just the right time, a series of seemingly inconsequential if slightly silly choices by Clementine (one - leaving her gun on the sink while she went to find her water bottle - which the player could have actually avoided if it weren't for it being preventable by the game), and the bathroom door closing just before Omid could successfully disarm the bandit, then it wouldn't have lead to the rest of the events of the first episode. Whats worse is that the Bandit likely had no intention of causing any of them any harm. She shoots Omid out of panic and drops the gun immediately but gets shot by Christa nonetheless.
  • In Zenonia 4, Regret spends most of the game trying to Set Right What Once Went Wrong with Time Travel. Every time he changes the past, something else happens to ensure that the world is still doomed. Regret eventually decides to face the threat head on rather than running back to the past in a futile attempt to avoid it.
  • Dalton in the Chrono Trigger /Cross continuity. He is quite clearly used as a comedic (and a not really super-powerful) villain in Chrono Trigger, but he manages to exact his vengeance against the heroes as suggested in Chrono Cross backstory and in exclusive Chrono Trigger DS version dialogue.
  • Clock Tower: Poor Jennifer. Between Scissorman, Mary and seeing Lotte die (no matter what the player does), she may get a lovely Hope Spot in the form of either Laura or Ann running to greet her at the climax— except said Hope Spot is promptly pushed straight off the ledge, into the Clock Tower's gears.
  • Dead Space 3 pulls this in the Awakened expansion pack. The destruction of the Weird Moon of Tau Volantis sends a signal to awaken the other Brethren Moons, which have discovered Earth and are feasting on the planet by the time Isaac and Carver return.
  • The penultimate Season 3 episode of Sam & Max: Freelance Police has Max transformed into a giant attacking hell-beast due to his new psychic powers mixing with an Elder God. Sam, Papierwaite, Dr. Norrington, and a pregnant Sybil are inside him. If they don't fix things, Max will explode and take out most of eastern United States. To stop that, the government is ready to kill Max. Things are actually looking up in the finale when the Big Bad take a Heel–Face Turn and lets the gang get out before fixing Max himself. Turns out that they all took too long: Max is hit by the weapon just as his normal mind is restored. His psychic brain has already caught fire, signally that he'll explode. He manages to teleport into space to avoid killing everyone, but Sam is left defeated and broken-hearted. Sure, a Max from an alternate universe shows up to hang out... But that's because he just had the same thing happen to his Sam. So, things worked out, but both the leads went through some major crap before pulling a Replacement Goldfish on each other.
  • The BlazBlue series makes it clear that its demands for anything resembling a happy ending will be paid with blood, in full with lots of overdue interest, and yet even by those standards Chronophantasma is where this trope comes out in full force.
    • One would be harder pressed to find a more fitting example than the end of Chronophantama. So Tsubaki is back with the good guys, Bang has been reunited with Lord Tenjou's son, Relius is a broken shell of a man, Terumi is dead, Take-Mikazuchi is defeated, Nu is unconscious, and all is right with the world, yea? Izanami pops right on in at the very end, has Phantom teleport Hakumen away (he was trying to kill Nu, something not even Celica could talk him out of), sics Phantom on Jubei (and reveals that she is Jubei's long-dead wife Nine of the Six Heroes), and reanimates Nu, who proceeds to hug.exe Ragna on the spot, fusing with him despite every effort he made to prevent it, wounding Noel and beating Jin to within an inch of his life in the process, with Ragna doing everything in his power just to keep from outright killing them. Bonus points for Izanami being the manifestation of death, as Rachel calls her, which implies a being of divine nature. That such a thing happens on the third game of the series (presumably out of four) suggests that Toshimichi Mori wants Ragna to die.
    • On the subject of Ragna, he never gets a good ending in Arcade mode, but the endings for his Calamity Trigger and Continuum Shift Arcade runs can be seen coming. In what must be a record for the poor sap, Ragna manages to stalemate with Nu-13 in CP Arcade (whereas all prior encounters ended with hug.exe), but when he attempts to activate his Azure Grimoire, Izanami intervenes and jams it. Terumi gloats about it, Nu stops Ragna from trying to wipe the smirk off Terumi's face, and that's how it ends. It ends this exact same way in Chapter 7 of the Chronophantasma story, too. Bonus points for evoking the Evil Plot Escape Clause, as losing Nu would compromise the villains' attempt to evoke the Master Unit.
    • Tager gets hit with it, too. His final battle is against Relius Clover, and when the fight ends, Kokonoe orders him to round the bastard up on the spot, but — wouldn't you know it — time gets scrambled at that point, with Tager back outside the Ibukido Ruins. Kokonoe notices something is amiss, and chalks it up to the Master Unit, with no further explanation.
    • And then there's Makoto, who the villains make damn sure nothing goes right for if they can do anything about it. In Continuum Shift Arcade, Makoto has just knocked Noel out when Hazama comes along and tosses the poor flat-chested girl into the smelting phase, whereas in Chronophantasma Arcade Tsubaki only gets one line in before Izanami forcibly reinstates Mind Eater and pushes her into a deathmatch with Makoto - after a fight in the Izayoi's Zero-Type mode no less. These instances are glaring because not only does the Evil Plot Escape Clause kick in - Noel is the lynchpin of Takamagahara and Terumi's plan to slay the Master Unit, while Izanami needs the Izayoi to kill Rachel Alucard - but both times attempts are made on Makoto's life in Story mode to prevent the incidents from repeating themselves. The latter also overlaps with Deus ex Machina as Master Unit: Amaterasu ejects Makoto from that fight before it gets underway.
  • Persona 2 pulls this infamously at the end of the first installment of the duology, Innocent Sin. Despite having lost his bet with Philemon over whether humans can overcome the supernatural adversity he was stirring up, Nyarlathotep teleports a minion of his behind Maya Amano, who stabs her with the mythical Spear of Longinus, fulfilling the Oracle of Maia and triggering the end of the world. Distraught at the death of their friend, and with the earth destroyed, the remaining party members agree to give up their memories of each other in exchange for Philemon reviving Maya and resetting the timeline.
  • At the end of Marathon 2, the defeated Pfhor use their sun-shattering Trih Xeem on L'howon's sun, unintentionally releasing the omnicidal Eldritch Abomination known as the W'rkncacnter.
  • The Witcher and its sequels are infamous for pulling this frequently in its sidequests, as a means to enforce the Grey and Gray Morality Crapsack World theme.
  • Tales of Vesperia has Zagi. He pops up at random moments to fight the party, all due to his obsession with Yuri. He also has various upgrades throughout that make him more dangerous each time he's encountered - and how he gets said upgrades are completely unknown. This is exactly why Yuri is so frustrated with him.
  • Tales of Xillia 2 has the party finally collect all 5 Waymarkers needed to make the Land of Canaan appear, it does and then, out of the blue, it's revealed that one needs a soulbridge to get there. How do you get a soulbridge? Well, a person with the ability to use Chromatus needs to die, so that their soul can act as a bridge. Meaning the party needs to kill either Julius or Ludger.
  • Undertale does this in both the Pacifist and Neutral endings, Flowey appears out of nowhere to ruin your day. In the Pacifist ending you actually get your happy ending after all, but in a neutral ending he succeeds. If you get the true ending after getting the worst ending, the normally happy ending gets one of these by showing the Fallen Human is still possessing Frisk's body and is hunting down and murdering the other characters.
  • In the original Contra, the Final Boss is a large alien heart, and defeating it is the only way to stop the alien invasion and save the world. In the Amstrad CPC port, however, for no reason at all, its destruction somehow triggers the Earth's self-destruct mechanism which then promptly wipes out humanity and all life along with it.
  • The Legend of Zelda:
    • The Legend of Zelda: Ocarina of Time: When Link pulls out the Master Sword, it (or possibly Rauru) puts him in a coma until he is an adult, which allows Ganondorf to take the Triforce unopposed. While Rauru claims afterwards that the Sword demands an adult wielder, this is not foreshadowed beforehand, and it is contradicted in both earlier and later games.
    • The Legend of Zelda: Twilight Princess: One in the backstory. Ganondorf is exposed for his crimes and executed. When the Sages stab him in the chest with a giant sword, they are very surprised when he suddenly manifests the Triforce of Power, survives, and starts killing them. They have to exile him to the Twilight Realm instead. This is because of timeline trickery. After Ocarina of Time, Link came back and warned Hyrule about Ganondorf's ambitions and they were able to stop him. But in the original timeline, his plan went unopposed, and when he touched the Triforce it broke, with the Triforce of Power going to him. Since the Triforce transcends time and space, he received it again in the altered timeline at the same moment.
    • The Legend of Zelda: Skyward Sword has one at the very end: At the conclusion of the Final Boss, Demise suddenly curses the incarnations of Link and the descendants of Zelda to forever fight the incarnation of his hatred. There are no previous hints that he could do this (unless you count his rival Hylia incarnating as Zelda), and while the curse itself doesn't bring him back from the dead, it serves no other purpose than to ensure that the series will chronologically continue after his passing.
  • Haunting Starring Polterguy: After poltergeist Polterguy defeats the final boss, he returns into his human form again, but an anvil appears out of nowhere, lands on his head and turns him into a ghost again.
  • L.A. Noire has Cole Phelps about to break the case against Courtney Sheldon involving illegal morphine when the Chief of Police interrupts the interrogation and drags Cole away to his office. The interrogation is suspended and is never resolved. Cole is outed for having an affair with Elsa and is demoted to the arson desk. The demotion also keeps Cole away from the big case he was working on since he would have gotten to close to the plans that were laid within the Suburban Redevelopment Fund.
  • Invoked in Fate/Grand Order's 2016 Valentines' Day event. When the protagonist and Shakespeare learn that they'll be able to resolve all the chaos going on simply by having a short tea party with Nursery Rhyme, Shakespeare decides that this is too easy and boring. So he "accidentally" rewrites the encounter so that Nursery Rhyme decides to trap the protagonist in the tea party using her Nameless Forest Reality Marble.
  • Throne of Darkness: Your team has finally defeated the Dark Warlord and restored peace to Yamato for it. And suddenly, your daimyo takes the power of the Dark Warlord for himself, as it was his plan all along, becoming the next Dark Warlord, effortlessly stomps your party and turn them into his mindless slaves. Sweet dreams!
  • In Fire Emblem: Three Houses, Chapter 10 ends with your father Jeralt getting shanked in the back. Your player character naturally takes offense to this, and in an impressive display of Gameplay and Story Integration pulls out their Divine Pulse ability to turn back time in order to stop this. Too bad a new villain you've never seen before teleports in out of nowhere and blocks your counterstrike, resulting in Jeralt getting shanked again, this time for good.
  • The first two Descent games end like this. In the first one, after clearing out the hostile robots from the solar system, PTMC refuses to let you return to base as they fear your ship might be infected with the virus, and they force you to do more work for them. In the end of the second, your warp drive malfunctions when trying to jump home, leaving your ship disabled and stranded in an unknown star system. It later turns out that Dravis intentionally sabotaged your warp core.

    Visual Novels 
  • Quick summary of diabolus in Ever17: Hurray! Everyone else already escaped and we've loads of time to get out plus a submarine! They get out safely, chatting while they go up and the sub's battery dies. What the hell? You'd think it would've been recharging automatically before they called for it. So in order to fix the buoyancy problem, Takeshi distracts Tsugumi with a question about the Archimedes Principle and enters the airlock then jettisons himself out to his apparent death and Tsugumi's eternal loneliness. What. The. Hell. But it gets better.
  • Quite a few Bad Ends for Ookami Kakushi fall under this. To be fair, not all of them are like this; some can be obtained by simply making the wrong decision (such as choosing to believe one girl over the other). As for others, however, there are arcs where you don't immediately see the result of a combination of choices you made until much later, which tend to result in this trope. Probably the best example of this is one Bad End where Hiroshi attempts to commit suicide after becoming a Kamibito and losing his friends only to be saved by Nemuru, who convinces him to keep living. Sounds like a happy, potentially heartwarming way to end a chapter, right? Cut to one month later, where Hiroshi comes across his old mufflers that have his old, strong honey-like scent attached, which causes him to go insane and attack his sister, which then leads to his implied execution.
  • Whenever the glider in If My Heart Had Wings is completed, something will go wrong no matter what, unless it's the end of a route.

    Web Animation 
  • Happy Tree Friends:
    • "Swelter Skelter": Nutty trips and his head cracks right open, at which point his brain fries in the heat like an eggshell, and Lifty getting trapped in a frozen explosion, which Shifty then impales himself on.
    • The end of "Wingin' It," when after surviving a plane crash and a shark attack, Godzilla shows up out of nowhere and eats Flaky.
    • "Idol Curiosity": Just when Sniffles thinks he's evaded all the Cursed Idol's traps, the earthquake he evaded earlier in the episode somehow takes a cab and destroys his house. He manages to evade it again... and then he breaks in half for no reason, though this could be explained as an effect of Sniffles being cursed.
    • "Spare Me": Sniffles spins around, which somehow causes his head to go flying off his body.
  • GoAnimate: No matter how savvy the troublesome kids in the grounded videos are nor how far the measures they take to hide their wrong-doings, something invariably happens that exposes them, even when there is no possible way they could have been caught. This trope isn't just used for busting a troublemaker, however. For example: an especially brutal instance of this occurs when Caillou and his family are going to see a movie, and despite interference from Caillou (who doesn't want to see the movie, namely Zootopia) they get to the theater on time...only for the theater to abruptly close just as they arrive for no stated reason whatsoever and the attendant present in front threatens to call the police on the family if they don't leave at that very instant.
  • Sims Big Brother 5:
    • The main twist of the season is that there was a liar in the house. By "liar", we mean someone playing under a false identity. The Liar is revealed to be Logan, but not to the houseguests. One week, there is a double elimination week and Michael Goldsmith says they have to evict the Liar, or else they will lose a portion of the grand prize (which the Liar would receive). Knowing he is in trouble from the other alliance, Logan persuades the majority and the floaters that the liar is Darby. Thus, the house cast their votes for Darby and Logan, and since Darby receive more, she is evicted.
    • Diablous ex Machina struck once before. In Sims Big Brother 2, there was a week in which 6 people were taken into the Solitary chamber, making themselves immune from the vote during Public Voting Week (in which everyone was up on the block, sans the 6 in the chamber). However, the person who lost all of the challenges was more or less screwed. They couldn't use any of the luxuries, couldn't compete for Head of household, were automatically nominated for three weeks in a row, had to eat an instant meal diet, and if any of those rules were broken, they'd be expelled. Dora unfortunately lost....meaning she had many of the worst weeks of her life in the house. Is it any wonder that after becoming the Unlucky Houseguest, she asked everyone to nominate her and vote her out?
  • Teen Girl Squad pretty much runs on this. The very first issue has So-and-So getting blasted by the laser eyes of a robot who appears with absolutely no buildup, and goes on from there. Other stories have included characters being killed by figments of their own imagination or during flashbacks.

    Web Comics 
  • The Order of the Stick pulls two of these at various points to save the (un)life of its Big Bad, Xykon — first when Miko Miyazaki unwittingly pulls the rug out from a paladin who's about to smite Xykon and his lieutenant, and second when Xykon's Soul Jar narrowly misses utter and permanent annihilation by falling just short of a portal to another dimension — after the bird that was supposed to drop it in from point-blank range stopped shy for what was then no apparent reason.
  • Din and Jin from Las Lindas seem to be this trope personified. Their latest "prank" rivals the Euphinator Incident in terms of everything going to hell in the worst way possible just when things were going good for the cast.
  • The first half of Homestuck's fifth Act goes swimmingly for its focal group of Internet Trolls. They overcome their differences to defeat the evil Black King and prepare to receive the ULTIMATE REWARD for defeating him; then a scratch in spacetime releases an invincible demon who kills their robot army and forces the Trolls to hide deep in an asteroid field until they can think of a way to over ome the demon.
  • In Bittersweet Candy Bowl, Confrontation just gets worse and worse, with every choice the characters make just making things more dangerous for them.
  • Maria's death in Anders Loves Maria. Occurs in the second-to-last strip, wtih next to no foreshadowing, and Anders spends two splash panels just staring off into space before a Time Skip to his life as a single father.
  • In Sinfest, to remove the happy endings.
  • Season 5 of Survivor: Fan Characters was full of these, given that the season was tagged "The Cursed Islands". Such "curses" involved having someone divvy up the tribes, but then get sent to Exile Island and have no control over which tribe they're sent to at the end of Day 3; a tribe being absorbed into the other tribes; someone having the choice to send themselves to Exile Island until the merge, but have absolutely no contact with their tribe mates until then; a random mutiny - one of the challenges was full of these; mainly, contestants would vote as to how many tribal councils they would be willing to go to with such debilitations as not being able to vote, having an extra vote against them, and not being applicable to win immunity. Miranda won the first, Brock won the second and subsequently led to his elimination, and Marius won the last although he managed to win because of this curse.
  • In Our Little Adventure, the clone's escape is called this.
  • Happens several times in Slightly Damned. Every things start getting good for the Protagonists, something happens to mess it up. Made even worse, since many of them double as Hope Spot moments. The lists include:
    • The end of the "Escape from Hell" arc, where just before Sakido manages to get them out of Hell and into Medius, which she had always wanted to see (at the cost of going berserk, which would have killed her anyway, albeit probably allowing her to at least get a glimpse of her dream), she's promptly shot dead by a Holy Arrow shot by an Angel that for some reason was in Hell.
    • In Weyville, just as Buwaro was about to express his feelings to Kieri...an Angel (with severe PTSD that's given him an intense hate for demons and anything remotely associated to them) suddenly shows up out of nowhere.
    • In St.Curtis, everyone seemed to be having a good time, with the St. Curtis Arc seemingly shaping up into a breather arc, then the army of Hell decides to break the Truce Zone that St. Curtis was shaping up to be. Also, the Seraphim have gone full-blown cultist, complete with ritual sacrifices of angels, and are commanding most of the demons.
  • In Plume, chapter 9 is chock-full of this. It starts with the protagonists having captured the villain and Vesper at the edge of having her vengeance, only for a sudden appearance of Azeel, who proceeds to wreck the party, leaving Corrick's amulet free for Dom to take and ushering what seems to be the true plot of the comic.
  • In the climax of Yet Another Fantasy Gamer Comic's Rannite arc, Arachne - who just happens to be specially trained for this purpose - manages to seal Ranna into an unfamiliar body, subdues her and prepares to kill her with a weapon made to make sure Ranna's soul can't escape at the moment of death. But before she can land the coup de grace, she's tackle-glomped by Princess Dewcup, who wanted to show Arachne her new Drow body. And Ranna promptly throat-stabs Arachne. In an impressive, but ill-timed bit of badassery, Drow-cups chokes out Ranna with a sleeper hold. Which allows Ranna to escape Arachne's vessel and return to her body. Which she then promptly uses to obliterate Black Mountain with a burst of raw magic. This is on top of several major characters meeting horrible ends in the course of the storyline.

    Web Original 
  • One exists in-universe in SCP Foundation. SCP-3167 (the Character Assassin/Serial Killer) is an entity that manifests inside copies of popular fictional written works, murdering major characters and rewriting the plot accordingly while causing all those who witness it to view sequels of the affected work as being altered accordingly, often for the worse. Its victims include Sherlock Holmes, Ron Weasley, and the titular game within the light novel version of Sword Art Online. It claims to be carrying out the author's wishes, stating "Rowling wanted Weasley to die. Doyle hated Holmes at the end. Kawahara wishes he had axed SAO a while ago." but neglects to elaborate on its other murders.
  • The finale of Dr. Horrible's Sing-Along Blog. Mad Scientist Dr. Horrible held at gunpoint with his own death ray? The gun explodes and he survives. The Made of Iron superheroic jerk Captain Hammer who fired it? Injured and humiliated, but survives. Naive heroine, Penny, on the far side of the room, who has just realized Dr. Horrible and Billy Buddy are one and the same and in love with her? Sorry, Penny. You get Jossed with Penny-seeking shrapnel.
  • Parodied in The Nostalgia Critic's review of Moulin Rouge!: he spends practically the entire review complaining about the movie before the The Nostalgia Chick and Brentalfloss convince him it is fine as a guilty pleasure. But this being a review of Moulin Rouge!, it needs to end tragically, so he randomly shoots Brentalfloss and mourns his loss. This is mocking one of their complaints about the movie, namely that Satine's consumption — and her decision to break up with Christian instead of telling him about it — seem like this trope.
  • "The Grand Heist" in Achievement Hunter's Let's Play Grand Theft Auto V. The Fake AH Crew is able to get the money and race towards the Titan to escape. Ray stays behind and performs a Heroic Sacrifice to get the other five into the air. As they're in the air, Gavin's doing his best to stay there and reach their target. Suddenly, the Titan stalls, clips one of the chasing helicopters and kills the rest of the team.
  • Nan Quest appears to pull one: just as Nan, Santiago, and Kim have come through a frighteningly-literal hell to get to the end, they are just managing to get out; then, just as Kim goes to leave, part of the burning, crumbling building collapses, pinning her under there where it's likely she'll be burned to death. They reach for her hand, call her name, fade out...and then the timeline alters, the hotel is intact, Kim is a child again and perfectly fine who goes off with her mother (keeping her memories), and even Santiago gets a happy ending as a child/surrogate son for Nan.

    Western Animation 
  • Almost an often event in your usual Family Guy episode.
  • In American Dad!, "Stan's Best Friend" has Francine getting a dog for Steve, despite Stan's vehemently refusing to get one ever since his jackass of a mother tricked him into killing his previous dog when he was a kid. Stan warms up to the dog quickly, until he tosses a frisbee to the street and a car nearly runs the dog over... Cue pirate cats riding a hot air balloon landing their basket on the dog, crushing him to death.
  • South Park... constantly.
  • Even the kid-friendly world of Alvin and the Chipmunks is not safe from the Diabolus Ex Machina. In one episode, involving a new cat dubbed "Cookie Chomper the 3rd," a Death by Newbery Medal comes out of nowhere in the last two minutes of the show.
  • This trope is played for laughs in Stone Trek: Every episode ends on a happy note... until the Starship Magnetize explodes for no apparent reason.
  • The early episodes of Sealab 2021 always end with the Sealab exploding. The most notable example of this trope is the episode that's just an episode of the original Sealab 2020 series, and so it's fairly normal and has a happy ending. Then the Sealab explodes thanks to bad directions.
  • It didn't involve any dying, but... Codename: Kids Next Door, "Operation Elections": Nigel Uno has just led his school to fend off an attack against a rival middle school, and is making a speech as he's assuming his rightful position as 4th grade president position that was robbed from him by the Delightful Children, who had instigated the attack by the middle school. And then the guy who earlier told him that he had won the election now tells him that he still lost the election to some random guy. Diabolus pours salt into Uno's wounds by suggesting that his fellow operatives also voted for the other guy.
  • Happens to Samurai Jack all the time. Because Failure Is the Only Option here (if he ever did manage to go home and Set Right What Once Went Wrong, the show would end for good) every time a way home is within reach, something will cause him to lose the chance or compel him to forfeit it.
    • Even when he DOES manage to get back home, he ends up losing the woman he loves.
  • The Simpsons:
    • In other election news, a lizard-suit wearing Homer Simpson seems well positioned to win a mayor recall election to replace Quimby, since no one else seems to be good enough. The suit turns out to be his downfall when it shrinks in the wash, and suddenly no one likes him, and since no one gets enough of the vote, Quimby stays in office.
    • In "Brother from Another Series," Sideshow Bob appears reformed and gets work release when his brother Cecil offers him a job for a dam project. Bart is convinced that Bob is up to no good, but in the end it turns out Bob really has reformed and Cecil was trying to embezzle millions from the dam project. Bob actually helps stop Cecil and saves Bart and Lisa's lives, but when the police arrive to arrest Cecil, Police Chief Wiggum insists on arresting Bob as well for no good reason.
      Bob: (in the backseat of the police car with Cecil) But I saved the children's lives! I'm a hero!
      Cecil: Tell them they'll live to regret this.
      Bob: You'll live to regret this! ...Oh, thanks a lot. Now I look crazy.
  • Hey Arnold!:
    • The Devil sure loves stalking Eugene Horowitz...
    • Used in-universe in one episode (that was actually Eugene-focused) where the drama teacher, having been dumped by his girlfriend, changes the ending of the school musical so the protagonist is randomly hit by a bus, the villain steals his Love Interest, and then sings a gloating song about being a Karma Houdini. The kids spend the rest of the episode trying to get it changed back.
  • The show Cyberchase LOVED using these to keep the magical cure-all MacGuffin out of the protagonists hands. Hell, that's how they lost it in the first place.
  • The Boondocks episode "Ballin" has Riley coming close to finally winning a game when the mentally challenged replacement center for his main competition turns out to be a child prodigy at basketball.
  • In Total Drama Island, Bunny is eaten by a snake. When Geoff tries to catch the snake to get Bunny back, an eagle swoops in and captures said snake. Geoff gets another chance when the eagle lands at the edge of the dock, but then a shark jumps out and snatches up not only the eagle with the snake with Bunny inside, but a sizable portion of the dock as well. Although Bunny's demise has dramatic consequences, the incident itself is played for laughs.
  • In Total Drama Presents: The Ridonculous Race, the double elimination that sends the Rockers home isn't announced until after they reach the Chill Zone and narrowly avoid last place. It's also the only double elimination in the whole series and comes straight after Spud finally gets some Character Development and stops being The Load.
  • It's Your First Kiss, Charlie Brown: Final play of game, and we're looking at either Charlie slotting in the game-winning field goal from short-range, or Lucy humiliating herself in front of the crowd for pulling that trick (you know the one). Even Charlie pulling a John Carney wouldn't have been as bad as Lucy pulling the trick anyway and not getting any of the blame for the loss, not even from poor old Chuck.
  • This is the purpose of the Kanker Sisters in Ed, Edd n Eddy. They tend to show up anytime something's actually going right for the titular characters (ex. "Over Your Ed," "Look Into My Eds").
  • Happens on a regular basis in Invader Zim, usually with Dib.
  • Avatar: The Last Airbender does this three times in the Book 2 finale. First, it's quite clear that Zuko's gonna do a Heel–Face Turn and join Team Avatar, but he instead does the reverse, betraying his uncle Iroh and teaming up with Azula. As if that wasn't bad enough, then, while Aang appears to have mastered the Avatar State, Azula shoots him with lightning, killing him, and as a result, successfully taking the Earth Kingdom capitol of Ba Sing Se. He comes back, at least.
  • The Legend of Korra isn't shy about doing this either. In the sixth episode of the fourth season, Korra has the villain on the ropes only to be paralyzed by a vision of her Enemy Without, who seemed to have been removed for good two episodes ago.
  • ReBoot. The final episode of the series has Megabyte captured and our heroes celebrating. But then it turns out the captured Megabyte is an alias (a.k.a. a decoy) and that Megabyte has infiltrated the Principal Office and then takes over. Cue Cliffhanger.
  • This trope is a recurring theme in G.I. Joe: Renegades, where Failure Is the Only Option. Every time the Joes find something that will clear their names, it's a safe bet it will either get burned, blown up, smashed, stolen, or stabbed. That is until the season one finale where the Joes returned to the Pentagon with all the evidence they needed to clear their names after destroying Cobra Mansion and defeating Cobra Commander, who survived and is ticked off by the way.
  • During the Christmas Episode of Metalocalypse, Doctor Rockzo, The Rock and Roll Clown (he does cocaine) sells all of Toki's Secret Santa gifts, for some cocaine. When Toki finds out, he prepares to give the clown a sound thrashing. Unfortunately, before he can reach him, Murderface's drunk Grandma crashes her scooter into a cross, trapping Toki under it. Rockzo escapes punishment, and even gets a handjob from Skwisgar's mom.
  • Dexter's Laboratory has a brutal one in the original Grand Finale "Last But Not Beast," combining it with a massive case of Status Quo Is God. Dexter and his family have finally learned how to work together and were able to stop the monster Dexter accidentally unleashed from Japan. However, he accidentally mentions his lab, which causes Mom and Dad to remember it, toonote . What does Dexter do? Pull out a mind eraser gun, erasing the memories of the lab and everything after it! However, Monkey, who had aided the family earlier, loses his mask, making Dexter realize his pet monkey was the hero. So, Monkey goes and takes the gun and erases HIS memory, allowing Mandark, who was taken out early on, to claim victory and leaving Dexter to bemoan that he wished he destroyed the monster. And Dee Dee says nothing about it.
  • Early Bill Plympton short Your Face is a plotless cartoon about a man who sits in front of his camera while a romantic song called "Your Face" plays, and the man's head transforms and morphs in all sorts of bizarre ways. At the end the man finally stops doing weird faces and looks at the camera as it pulls away—until a giant mouth in the earth opens up and swallows him whole.

 
Feedback

Video Example(s):

Alternative Title(s): Inexplicably Went Wrong, Contrived Downer Ending

Top

The RFI

The RFI - the thing that was supposed to destroy the Beast and fix everything - will kill all conduits if Cole uses it. Funny that Wolfe didn't mention that.

How well does it match the trope?

Example of:

Main / DiabolusExMachina

Media sources:

Main / DiabolusExMachina

Report