Last Breath Bullet

""To the last, I grapple with thee; From Hell's heart, I stab at thee; For hate's sake, I spit my last breath at thee.""

- Captain Ahab, Moby Dick

The story's over. The Big Bad is defeated. The end of the world has been prevented. The heroes are victorious.

BANG!

From nowhere, a bullet rips through one of the heroes, killing them almost instantly. It turns out that the villain, or possibly a random Mook, was Not Quite Dead. Having shot the hero, he then collapses on the floor, dead.

The above is the most common form of this trope, but a) it does not necessarily have to be a bullet; b) the villain does not have to die immediately afterward; and c) the scenario may just have been added for the dramatic effect and the hero could pull through in the end (likely due to aid from a teammate). However, it is usually the last we ever see of the villain. This can also take the villainous form of a Taking You With Me depending on the circumstances.

A form of the Downer Ending, and a Diabolus Ex Machina, though it is also possible for a dying supporting character to save the hero's life this way, which may make it their Crowning Moment of Awesome. Occurs most frequently in action films. Can overlap with Taking You With Me, and/or with Load-Bearing Boss. Compare with Last Villain Stand.

Anime and Manga

 * In Dragonball Z when Cell is seemingly defeated after a laser comes out of nowhere and kills  and reveals that Cell regenerated and they continue combat until
 * Used in Digimon Adventure when after Leomon takes a fatal blow for Mimi,and Zudomon cracks the Big Bad s chest by throwing a hammer at it,Leomon gets up and impales that crack,...then collapses and dies.
 * Subverted in Full Metal Panic, where Zaied unexpectedly still had enough life to be able to aim his gun at Sousuke and tell Sousuke that the person who has remaining ammunition is the winner. Sousuke is shown wincing and waiting for the impact, but instead Zaied lifted the gun and shot the remaining ammunition into the sky before dying.
 * Played straight in the novel Semaru Nick of Time when
 * This happens to in Gundam Seed Destiny. In this case, it overlaps with
 * In Princess Mononoke, a scene at the end embodies the spirit of this trope pretty well. It's not a bullet...more of a Last Breath Bite.
 * Bleach when.
 * The villain themselves doesn't die but in one episode of Ghost in The Shell Stand Alone Complex, Togusa intervenes when a young man is attacking a young woman. Said young man turns out to be a cyborg and switches off his pain sensors, forcing Togusa to shoot out all his limbs. However when he turns around to help the victim up the cyborg shoots her (having been able to level his gun using just his elbow) out of spite.
 * In Puella Magi Oriko Magica,  uses the last of her strength to hurl

Films -- Animated

 * Spoofed in Team America World Police.
 * Played with in The Secret of NIMH. The villain Jenner is defeated by Justin, and gets up to take one last stab at Justin once he throws away his sword - only for a henchman he had stabbed earlier to kill him with a throwing knife as he died.
 * A villain vs. villain example: In Atlantis the Lost Empire, Big Bad Rourke betrays his right hand, Helga, and knocks her off his hot air getaway balloon. Right before she dies, she fires a Flare Gun at the balloon in revenge igniting it and causing it to fall back to the ground, presumably crushing Helga in the process.

Films -- Live-Action

 * Khan in Star Trek II the Wrath of Khan, activating the Genesis Device.
 * Quoting Moby Dick as he does it, no less.
 * In Inglourious Basterds,
 * Three Amigos!: After using a creative method to defeat El Guapo, El Guapo tells them it was a good trick, shoots at one of them in the foot, and says that that was a good trick too. (He doesn't actually kill them but does die laughing).
 * Subverted in Die Hard when Sergeant Al Powell shoots Karl before he can shoot John McClane.
 * Played straight in Lucio Fulci's Contraband, where one of the main villains gets a bullet to the throat courtesy of one of the good guys, who was machine-gunned by his henchmen a few moments earlier.
 * At the end of Final Fantasy VII Advent Children, after Cloud has defeated Kadaj and the others lower the airship to pick him up, he gets suddenly shot right throught the chest in a highly dramatic fashion by Yazoo, who pops up with Loz behind him. Cloud survives, but it gives him a near death experience to get closure with Aerith and Zack.
 * Zukovsky does a variant in The World Is Not Enough, albeit without directly killing anyone; instead, he fires his cane-gun at the manacles securing Bond to Elektra's torture chair. Elektra assumes Zukovsky was trying to kill Bond and missed, remarking that "he must have really hated you," but the impact of the bullet enables Bond to break free - almost certainly Zukovsky's intention, given that he realized immediately previous that Elektra had killed his nephew.
 * In Seven Samurai, all but two of the bandits are dead, and while the remaining samurai are trying to ascertain if there are any left, the Big Bad manages to shoot and kill two of the remaining heroes before being killed himself.
 * Subverted in Yojimbo. The villain makes a last request that the hero allow him to die with his prized gun in his hand, claiming that it is unloaded. The hero gives him the gun and he tries to pull one of these, but is so deep in his death throes that he is unable to pull the trigger.
 * Also subverted a la Yojimbo in the 1949 version of Whispering Smith.
 * Subverted in The Departed:
 * Last minute subversion in ~The Good, the Bad, and the Ugly~. After being beaten to the draw by, a dying tries to recover and shoot back.  just calmly shoots him again before he can manage.
 * Subverted in Batman Returns. With Batman distracted with the, the Penguin rises from the sewer water and Fortunately, he "picked the cute one,"
 * "I'll murder you momentarily. But first, I need a cool drink... of ice...water..."
 * A flying dagger through at the end of The Banquet.

Literature

 * The Balrog does it to Gandalf in Lord of the Rings by dragging him down into the underground.
 * is killed this way in the last book of The Dark Tower.
 * At the end of Rupert Of Hentzau, the sequel to The Prisoner of Zenda, everything looks set to have Rudolf Rassendyll assume the throne of Ruritania and live happily ever after.
 * A heroic version of this occurs in the shootout with the Masadan terrorists on the Wages of Sin in Crown Of Slaves when Berry and Ruth's bodyguards have all been killed and as the Masadans are gloating one of them regainds consciousness just long enough to nail the leader.
 * In a sense, the wizard's Death Curse acts as one of these in The Dresden Files.
 * The mutual death of two minor villains in the Redwall book Pearls of Lutra had a water rat named Sagitar stab a traitorous comrade with her trident as she lies dying on the ground from a stab wound.
 * In Richard Hughes' novel In Hazard, the plot itself seems to pull one of these, when, after the ship has come through a terrible storm,
 * Another heroic version in the climax of Dennis L. McKiernan's The Iron Tower trilogy, with the words, "Danner Bramblethorn had fired his last arrow." But that arrow was crucial to getting the fortress gates open.
 * One of these stops the Career Killer during the Luisa Rey segment of Cloud Atlas. It's shown from the perspective of the one firing it as he lies bleeding out on the floor, and his hand feels like it takes years to reach the gun.
 * First Mate Cox tries this at the end of Nation, but it's subverted when the sharks get to him first.
 * The Melconian sniper who shoots  in Old Soldiers is more of a Last Man Bullet than Last Breath Bullet, but since he's the sole survivor of the Melconian heavy division that the Bolo has just finished slaughtering, and doesn't last long afterwards (neither does a large chunk of the hillside he was hiding on), this troper thinks it still counts.

Live-Action TV

 * In the Heroes season 1 finale, Sylar appears to be dead, but then gets up to telekinetically throw Hiro at a building, before falling unconscious. Hiro is able to send himself back in time before he smashes against the wall though.
 * The previous Master was killed by his assistant, whom he'd fatally wounded and left for dead.
 * This also happens to in "Cold Blood" by the General Ripper.
 * And in some respects, in "The Pandorica Opens".
 * ""Dear Sister", a Saturday Night Live short. Six characters, 24 shots fired, all except 2 fired by the dead and dying. We don't know who the villain is, but assuming there is at least one this probably counts.
 * Gasp!
 * In The Goodies episode "Bunfight at the OK Tearooms" (a parody of just about every Western trope ever), a dying Bill gets off a final squirt of his sauce bottle just as Graeme's girl flings herself into his arm. The sauce misses Graeme but gets the girl.
 * And then, filled with grief, Graeme squirts sauce at himself.
 * In Once Upon a Time, Prince Charming kills a warlord to prove himself. While giving a motivational speach, the warlord impales Charming before dying to his wounds.

Videogames

 * Andross in Star Fox 64: "If I go down, I'm Taking You With Me!"
 * In Quake II, the Guards will sometimes get up for two shots (or bursts of varied length, in the MG Guard's case) aimed right in front of them, and the Enforcers may have a muscle spasm that has it let off about ten rounds in a blind burst that starts in front of them and moves upwards as it falls on its back.
 * Call of Duty: Stupid Last Stand perk...
 * Martyrdom is even worse as it gives players last breath grenades.
 * Last Stand in the hands of a skilled player is far more dangerous than the single grenade. You last quite a long time, if you are in a hardcore server you often only need a couple of pistol shots to kill someone, and can rack up 3 or 4 extra kills if players don't realise you are there.
 * It gets worse, Last Stand is a yellow perk. Martyrdom is a deathstreak. You can equip both at the same time. Meaning the guy who just took half a minute and three of your teammates to bleed out left a little present behind when he did.
 * Subverted in the ending of Modern Warfare..
 * This is probably all over the Ace Attorney franchise, but the one that I recall the best would be.
 * It happens in Mega Man X 5, in the ending:
 * After Killer is defeated in Shadow Hearts: From the New World, he manages to attack protagonist Johnny.
 * Outlaw's ending in Twisted Metal Black - Just after killing the terrorist, and getting confirmation that he was down, we hear "Target is still hot! Repeat, target is STILL HOT!" right before Pink Mist gets splattered everywhere.
 * Related to the ending of Call of Juarez -
 * This is how Valkyrie Profile Covenant of the Plume starts. Wylfred and Ancel have killed some random monsters, but one of them gets back up and attacks Wylfred. He gets better, but only because he makes a Deal With the Devil.
 * Played perfectly straight during the Leon A scenario in Resident Evil 2.
 * In the after-credits epilogue of Syphon Filter: Logan's Shadow, Dark Chick Trinidad guns down Logan, Teresa, and Mujari, but Logan kills her before passing out. It is unknown whether he is Killed Off for Real or not.
 * In Dawn of War 2: The Last Stand the Ork Mekboy can equip a piece of wargear that creates a large explosion when he dies.
 * Done in a completely Tear Jerker way in the middle of Valkyria Chronicles.
 * A weird arguably-non-villainous example occurs in chapter 5 of The Way;, who was trying to save his life (and did not injure him), as his last act before dying..
 * Fairly common in Final Fantasy games, where enemies will cast a particularly devastating attack as a scripted counter when their HP drops to zero, but before their death animation occurs. If the party bites it due to this attack, it still counts as a game over.
 * Final Fantasy VI: The Magi Master atop the Fanatics' Tower will only cast Ultima (a defense-ignoring spell that performs 9999 damage, so it might as well be an instant-kill) when defeated. The only way to survive it is to have Reraise active (so the spell hits, kills the character, and then he or she is revived automatically) or to be outside the battlefield altogether by summoning the Esper Quetzalli.
 * Though the most common method of avoiding this is simply to drain all the magi's MP away. Which prevents the casting of this spell and conveniently kills him as well.
 * Final Fantasy VII: This is the purpose of the Final Attack materia, allowing the character to perform the attached action (usually the Phoenix summon) when killed.
 * Final Fantasy VIII: An otherwise inconsequential Esthar cyborg solder manages to hit both Kiros and Ward with a devastating attack just before dying. This is unavoidable and is used as an alternative to a Hopeless Boss Fight to justify Laguna's team being nearly defeated after the fight is over. Considering how weak the Esthar solders have been up to this point, however, it feels a little forced - especially since it's possible for either or both characters to avoid having their HP reduced if they happened to be summoning a Guardian Force at the time.
 * Final Fantasy X: Behemoths cast the massively damaging, enemy-only spell Meteor.
 * You can pull this off in Night Striker when your car is defeated, as there is a short time where you can still fire shots at the enemies before going down. It's still a loss for you, though.
 * Enemy mooks in James Bond: Everything or Nothing will often fire off one last shot before falling dead.
 * Medal of Honor's mooks sometimes do this.
 * Jericho does this to Tanner at the end of Driver 3, putting him into a coma.

Webcomics

 * Problem Sleuth contains a heroic example: Zombie Hired Muscle saves Problem Sleuth from the last of the Cultural Rainbow mob.

Real Life

 * This is how the notorious gangster Baby Face Nelson died. While he was boasting about being the first man to ever kill three G-men, he failed to notice that one of them wasn't dead yet.
 * In the failed assassination attempt on President Harry Truman (Nov. 1, 1950), White House policeman Leslie Coffelt was shot three times but still managed to shoot would-be assassin Griselio Torresola through the head, killing him. Coffelt died at the hospital shortly thereafter.