Necessarily Evil

""What do you do when there is an evil you cannot defeat by just means? [...] In my case, I commit evil in order to destroy the greater evil!""

- Lelouch Lamperouge, Code Geass

The more Anti-Villain version of the Well-Intentioned Extremist or Knight Templar. A villain may believe that the Ends, usually or especially involving a Utopia or the survival of the species, justify the Means, but has in no way lost his conscience, or otherwise may have had a Heel Realization during his deluded time. He knows full well that what he's doing is evil and that heroes may try to bring him to justice for his crimes. He may in fact be counting on it, feeling it to be a just punishment for what he feels he must do. He may bear the heroes no ill will, and may in extreme cases even commend them for trying to stop him.

Oftentimes, in the event that he succeeds in his goal, he will flat-out refuse to take part in his newfound paradise: the things that he did to create it are inexcusable in the new society.

Will regularly Shoot the Dog and carry out a Zero-Approval Gambit.

He does what he has to do, because he knows that something far worse will happen if he doesn't. He knows he must pay the price for his deeds, but not before his goals are accomplished. What a Senseless Waste of Human Life... In some cases, said actions may be unnecessary towards that goal, and there may be a better option. But of course, the character is either too far gone in morality or sanity to see the light.

The polar opposite of the Sociopathic Hero.

Anime and Manga
"Captain Bravo: I am going to terminate Kazuki and then defeat Victor. I will do my duty as Captain Bravo, the Warrior Chief. And then, as Mamoru Sakimori, I will pay for what I have done... by ending my own life."
 * This is the attitude that the protagonists of Weiss Kreuz take toward their work as assassins. They kill criminals who are above the law in order to help protect the innocence of normal people, while acknowledging that they themselves are also criminals and murderers, and expecting to be punished for it someday. Even their voice actors, one of whom is the creator of the series, do not expect their characters to meet good ends.
 * Sailor Moon: Sailors Uranus and Neptune consider their actions necessary but not worthy of forgiveness.
 * In Gundam Wing, Treize Kushrenada and Milliardo Peacecraft start a war to show humanity just how senseless war really is. Treize actually goes so far as to commit to memory the names of every single one of his deceased pawns, to show that he doesn't take their sacrifices lightly.
 * Another example is the side of Mobile Suit Gundam 00's Celestial Being represented by the Ptolemaios crew. They are fully aware of the hypocritical and outright contradictory nature of their mission statement to end war through war, with some even admitting that they make for excellent terrorists.
 * However, it turns out that the Ptolemaois crew is . It works out, somehow.
 * Lelouch, the protagonist of Code Geass, openly admits that he's doing reprehensible things in pursuit of noble goals (bringing down The Empire and making the world a better place for his Morality Pet sister). This is rather openly pointed out in an early second season episode where he engages in a short Hannibal Lecture to Honor Before Reason Guilford about the best way to confront an overwhelming evil.
 * And late in the series,
 * Also in the latter parts of the series
 * Itachi from Naruto may embody this trope.
 * Danzo also appears to consider himself this, claiming the ninja world must unite, and there's no time to do it morally.
 * Makes sense considering that Danzo is Itachi's old boss.
 * Tengen Toppa Gurren Lagann does this with.
 * Dr. Kabapu from the Excel Saga manga claims to be this, seeking to destroy all Overtechnology left behind by the Solarian civilization in order to avoid The End of the World as We Know It repeating itself. However, it conveniently puts him in a position of power in Fukuoka City and sets him against his age-old nemesis Lord Il Palazzo, so it's less than clear whether his words, or Il Palazzo's for that matter, can be trusted.
 * The Iscariot Organization in Hellsing. Their Badass Creed basically is them chanting how they will follow the disciple Judas in following God's plan through the means of sin and betrayal, and that they will march into hell to do battle with its demons when they die.
 * Amber in Darker than Black is leading a sort of La Résistance against The Syndicate, having learned that . Unfortunately, the only permanent solution for that is to . Being a Contractor, she has no qualms about it, but when presented with another option, is willing to to make it work.
 * Light Yagami arguably starts off this way in Death Note, determined to sacrifice himself for the greater good. However, less than a week later he's squeeing over his promotion to godhood. It doesn't keep him from occasionally toying with the concept of himself as selfless and self-sacrificing, though.
 * This doubles with What You Are in the Dark, as Light carries out his actions as quickly as possible during the first five days in an attempt to do as much good as possible before he meets his horrid end. It is only after finding out, that he begins to turn into the egotistical Jerkass that he becomes.
 * Captain Bravo of Busou Renkin descends into this when he accepts the order to kill Kazuki before he completely Victorizes (A process they did not know could be arrested or reversed at the time). He even freely admits that this is a war crime that he will have to answer for once the war is over.

""Even if I am to carry "all the evils of this world", it won't matter. If that can save the world, then I'd gladly accept it.""
 * Necessarius from To Aru Majutsu no Index is a English Anglican organization trained to hunt down magicians using that same magic. Their proper name is even "the Church of Necessary Evil."
 * Paul von Oberstein from Legend of the Galactic Heroes is a Necessarily Evil strategist who seeks to overthrow the Deadly Decadent Court of The Empire (which he belongs to), at any cost. At one point, he allows two million people to die in an atomic attack he was forewarned about, simply because having it happen would discredit the nobles and help Reinhard take control of the empire. He is fully aware that he must be Reinhard's Poisonous Friend and in many ways plays the 'lightning rod', letting the negative public opinion focus on himself instead of Reinhard.
 * Okiura from Kobato. is pretty clearly evil. He's with the Yakuza, and using threats and underhanded tactics to force his own ex-wife Sayaka to shut down the preschool she's taught at all her life to collect on a debt she inherited from her father the former owner. That's Disney evil. It's later revealed that he's afraid that the yakuza will hurt Sayaka, and has been working from the inside to buy her as much time and safety as possible. He doesn't have the authority to call off the others, and he knows if she sells the building, she'll be safe. And better he shatter her dreams than the yakuza shatter her limbs. He does his best to appear cold and villainous in an attempt to push her into selling, and accepts that while he might be saving her life, Sayaka will probably never love him again.
 * Emiya Kiritsugu of Fate/Zero lives by this trope, although he is an extreme Anti-Hero rather than a villain. Originally he was an idealist who wanted to save everyone, but all the deaths he witnessed left him cynical and disillusioned. He lives by a harsh code of utilitarian ethics- killing the few to save the many. His ultimate goal is world peace, and he is willing to do anything to achieve it. As he himself says:


 * Mirai Nikki: This is how Yukiteru views

Comic Books

 * in Watchmen constructs himself as Necessarily Evil in his final conversation with Dr. Manhattan, . He is never brought to justice for his acts and the comic does not judge either way, leaving the readers to make up their own minds on the subject.
 * Alter from Y: The Last Man, after dealing with internal discord in Israel thanks to an abrupt end to their conflict with Palestine, concludes that America will suffer the same fate without an outside enemy to distract them—Naturally, that would be her.
 * Chris Claremont insists in some of his more recent chances to write that everything Mystique did before Irene's death was to prevent prophecied worse evil from taking place if she didn't.
 * Galactus, the Marvel Universe eater of worlds is needed for the survival of the universe.
 * In the DCU, Amanda Waller's original characterization. One storyline had the Suicide Squad being forced into disbanding. Amanda's response: hijack three of the prisoners who made up the Squad, offer them their freedom in exchange for their cooperation, brutally massacre the gang of thugs who had set in motion the disbanding... and then turn herself in to face trial. Going further, she refused to use her knowledge of American espionage to get a better deal, reasoning that they'd dig her out if they ever needed her again. She ended up spending a year in prison.
 * The ending of V for Vendetta features this trope,
 * In Cable & Deadpool, Cable endeavours to unite the world against a devastating enemy - himself. The idea being, with his powers spiralling out of control and becoming a threat, everyone would team up and kill him, and then feel guilt for doing so, as his public plan was to establish an island utopia.
 * Later in the same book, he aided the revival of Apocalypse so the decimated mutant race would have an enemy to unite against.
 * The reason Wolverine was recruited by Iron Man & Captain America (comics) to join the New Avengers was that he would be able (And willing) to kill if necessary, whereas the rest of the team wouldn't.
 * Nick Fury, Marvel's resident Spy Master is often a jerkass who performs at the least morally questionable, but necessary actions due to the grey world he lives in.

Film
""What I do is evil. I have no illusions about it, but it must be done.""
 * 'The Operative' from Serenity.

""I am what I am. Someone has to be.""
 * The main theme of The Dark Knight Saga was Batman - and his perception in the eyes of Gotham City - becoming this.
 * in Unbreakable has spent his entire life being Necessarily Evil and looking for someone to counterbalance *him* so that his world will make sense.
 * Reynald in Kingdom of Heaven

"The cops were killing off known criminals with summary executions because the to them courts did not work"
 * The death squad in Magnum Force


 * The in The Cabin in the Woods.

Literature

 * Emperor Ezar, in Lois McMaster Bujold's book Shards of Honor, sets up a massive interplanetary war and gets several thousand people killed, all to.
 * The Villain Protagonist of Treason by Orson Scott Card. He . Towards the end, only his certainty that it was necessary is keeping him sane.
 * Alan Dean Foster's The Man Who Used the Universe.
 * By some readings, Paul Atreides and Leto Atreides II in the Dune series, who both see the future. Leto especially fits the trope: in order to . Sometimes, The Messiah has to be a Magnificent Bastard to save you despite yourself.
 * The Wolves/Inhibitors of Alastair Reynolds' Revelation Space trilogy wipe out intelligent life any time they discover it spreading beyond its original planet. (Even they, a kind of Mechanical Lifeforms, are only intermittently sentient when necessary to reach their goals.) It eventually turns out they are trying to keep intelligence from being wiped out forever when our galaxy collides with the Andromeda galaxy several billion years in the future.
 * A small-scale version is the killer in The Victorian Hangman,
 * In the Warhammer 40000 Gaunt's Ghost novel ''The Guns of Tanith' one of the Ghost's less savoury members kills an old man to keep word of their secret mission getting to the Blood Pact. Subverted by the thoughts of Hlaine Larkin in the same squad thinking 'There was quite enough unnecessary evil in the fething galaxy without deliberately adding to it'.
 * Discworld's Vetinari. Maybe.
 * The is half the reason Unseen University employs Prof. John Hicks Hix: he plays the part of the evil (but not too evil) necromancer so UU can claim a monopoly on all evil magical activities, suppressing any freelancers at will.
 * This is also why Vetinari set up the guild system for the thieves and assassins. he reasons that since there is going to be crime, it might as well be organized crime. In short, both guilds are allowed to steal and kill a certain amount each year, and in return they must crack down on any freelancers. And in case you're wondering why someone as sharp as Havlock would trust a bunch of robbers and murderers, it's because he doesn't; He knows where they live.
 * This is an Alternative Character Interpretation of Judas Iscariot in The Gospel of Judas, a Gnostic text dating back to the fourth century. In it, Judas is depicted as following Jesus's instructions when he turned him over to Pontius Pilate, in order to set in motion the events that lead up to Jesus's resurrection (though only according to the National Geographic translation, not to serious scholars).
 * Severus... please!
 * Jacen Solo in the Star Wars Expanded Universe prior to Jumping Off the Slippery Slope.
 * The Horus Heresy novels provide us with one person who joined the Heresy not because he believed the Emperor had betrayed them, but because he knew it was side with Horus and save everyone except humanity, or side with the Emperor and screw over the entire galaxy and everyone in it. . The Drop Site Massacre, and all other events of the Heresy, were being done in order to break the back of Chaos.
 * Bear in mind that the people who told him that were not necessarily trustworthy, and that the Alpha Legion's plans are so convoluted and odd that they may all be double-crossing each other.
 * An inspirational tale that did the rounds about two captives who were being tortured into renouncing their faith. One night, the first man admits that if the tortures continue the next day, he will have no choice but to surrender. His friend spends the night mulling over whether to kill the first man so that the first man's immortal soul might remain saved - while he himself will be damned to hell for the murder - but at last realizes that it would be wrong. His choice was right, because the first man mercifully dies on his own in the morning before the torturers come.
 * Skirmish forces all of humanity into this position by way of Instant AI, Just Add Water. Rather than revert to savagery, people must violently quell a Robot Rebellion—or, to put it bluntly, reenslave an entire sentient species. (Lamarck Was Right is not an option here—even a sewing machine comes to life.)
 * In Daniel Suarez' Daemon
 * In the Warhammer 40k novel Angels of Darkness, Brother - Chaplain Boreas delivers a very short speech regarding the value of human life in the grim darkness of the 41st millenia. " 'Oh, I agree that battle and sacrifice result in death,' Boreas replied with a grimace. 'I understand that we live in a brutal universe, and that amongst the unnumbered souls of the Imperium, a few million deaths are immeasurably minute. The Dark Angels have purged worlds that are beyond all attempts at redemption, and we have done it with joy for we know what we do is for the security of the future. Truly it is said a moment of laxity spawns a lifetime of heresy' ".
 * Varys in A Song of Ice and Fire claims himself to be this: "Why is it always the innocents who suffer most, when you High Lords play your Game of Thrones?" However, he is perhaps the most gifted intriguer and spy in the Seven Kingdoms, so his own motivations are incredibly clouded.
 * Ebenezar McCoy of the Dresden Files taught Harry about how magic is suppose to be about protecting life and respect for the laws of magic.
 * In the sixth book of The Saga of Darren Shan, The Vampire Prince,

Live Action TV
"Tigh: Which side are we on? We're on the side of the demons, Chief. We're evil men in the gardens of paradise, sent by the forces of death to spread devastation and destruction wherever we go."
 * This is how Chief of Police Unser views his arrangement with the eponymous bike gang of Sons of Anarchy. He allows them a more or less free hand in and around Charming and they keep drugs and other gangs out.
 * From Battlestar Galactica:


 * UFO. Although the nature of the aliens is a mystery, their harvesting of human organs indicates they come from a Dying Race. Commander Straker suggests they view humanity not with malice but with callousness ("much as we view our food animals"). Straker later encounters a man with telepathic powers who is being controlled by the aliens. In the middle of their conversation he suddenly blurts out: "We mean no harm to the peoples of Earth. Why do you attack us? We're fighting for existence... you must understand!"
 * Torchwood's Captain Jack Harkness, when he's not The Ace, a Lovable Rogue, or a Chivalrous Pervert, pretty much bases his entire character around being this. The best (worst?) examples are the episodes "Small Worlds" and "End of Days", and of course, the miniseries Children of Earth.
 * The Company from Heroes in Volume One.
 * Shadows from Babylon 5 regard themselves as agents of evolution, and the genocidal wars they wage on the galaxy - as an effective form of natural selection and development drive for the Younger Races. Subverted in that there never was an actual need for such accelerated development, and Shadows only enforce it to prove that it works.
 * William Edgars, who plans to, finds it to be a monstrous but the most expedient solution to what he considers an otherwise unsolvable problem.
 * Queen Mab from the Merlin-1998 series tries to pass herself off as this, but the other characters don't believe her, mostly due to her complete and utter amorality in the face of the pain caused by her actions. As emphasized in the novelizations, Merlin is also "necessarily magical" as he uses the magic of the Old Ways to create a society free of the Old Ways, and gradually becomes less and less welcome in the new society when the now predominantly Christian kingdom gets less tolerant of a wizard of the Old Ways.
 * Buffy the Vampire Slayer included a bit of lamp-shading on the overlap between this and Shoot the Dog in the season 5 finale when
 * In season 6 of Supernatural,  becomes this after Micheal has been locked up with Lucifer, and the only remaining archangel wants to break open the cage so Lucy and Mike can finish up their big fight, or even worse, become the new God. Faced with the prospect of death, or going along with these plans,   was forced to Take a Third Option that had him trying to handle the slippery slope without jumping.

Music

 * Laibach's Abuse and Confession suggests that Judas Iscariot was the Ur Example: Jesus had to be betrayed by him, so he chose a kiss as the sign to show how he really felt. He is quite bitter about it, though.
 * The Residents' "Judas Saves" plays with the same idea, except that instead of becoming embittered, Judas is, judging by the music, filled with psychotic joy.

Tabletop Games

 * This is how the factions in Warhammer 40000 that aren't just in it For the Evulz operate, and most of the time they're correct.
 * The Imperial Inquisition is the epitome of this. On a whim, every fully ranked Inquisitor in the service can have any individual pressed into service, commandeer vehicles (up to and including Space Marine Battle Barges) for their use, summarily execute anyone they deem heretical, torture people indefinitely, and call down Exterminatus: the complete destruction of the biosphere of an entire planet, if not just blowing up the whole damn rock. Their decisions are inviolate. One of the most famous phrases ever uttered by an Inquisitor is "A plea of innocence is guilty of wasting my time." Why is this gross extremism necessary? Because if they weren't around, the taint of Chaos would spread virtually unchecked throughout the Imperium, and within less than a dozen generations basically the whole galaxy would be rendered lifeless and/or sucked into a psychic-energy-powered expy of HELL itself. So, yes, horribly evil, very necessary.
 * The perfect example would be Inquisitor Kryptman. He ordered the creation of a Galactic Cordon, and in the process caused billions of deaths and more destruction than any set of events since the Horus Heresy - including the Reign of Blood, the Black Crusades, and the Armageddon Wars. He managed to save the galaxy, but was declared Excommunicate Traitoris for his methods. And that's not taking into account the Kryptman Gamble...
 * This trope is the title of a Savage Worlds book that allows PCs to play supervillains in world where aliens had successfully killed off all the superheroes.

Theater

 * In Jesus Christ Superstar Judas considers his betrayal of Jesus to be this in order to keep his movement from getting out of hand and destroying the Jewish people. To a lesser extent this is also true of Caiaphas although there's also a large amount of self interest mixed in in his case.
 * The big twist at the end of Urinetown is the Big Bad Cladwell actually being right the whole time and the revolution that overthrows him actually makes everything so much more awful than it was under his draconian rule.

Video Games
""I can't allow you pass" [grueling battle] "Thank you for killing me, please move onward!""
 * In Fable III,  views his actions as these in order to
 * Kessler, the Big Bad of In Famous, is a perfect example of this trope. Yeah, the writers were insane.
 * in Neverwinter Nights 2. Not only does he deal with in order to get what he needs done. True, he's trying to save all of the sword coast. But at the same time.
 * Though he does have a Villainous Breakdown when he realizes who  was, and spends the rest of the game trying to atone for what he's done.
 * For the most part the Overlords are this to the world. While each Overlord can range from Complete Monster to Noble Demon, they seem to save the world (so they can take it over) from the other (worse) evils and Fallen Heroes. states that the Balance of Good and Evil will mean that during the times when Light Is Not Good and becomes too powerful, Darkness is required to triumph.
 * According to the manual, Gill. Like all Street Fighter canon, it's... complicated.
 * Bian Zoldark and Maier Branstein in Super Robot Wars Original Generation. When they realized that the government was preparing to surrender to the coming alien invaders, they launched an attempt to Take Over the World, in order to give mankind the means to fight back against the invaders, remove those who wanted to collaborate, and finally, ensure that the heroes were strong enough to spearhead the counterattack.
 * Tragically, a lot of their minions had different plans. Most of which involve 'kill the heroes, take their place'. Which may have been Bian and Maier's back-up plan.
 * Seraph Lamington in Disgaea allowed Vulcanus to run amok, and later justly but "excessively" punished Flonne for a relatively minor sin by turning her into a flower. He was however willing to, and counting on, being defeated by the protagonist.
 * Not that that matters anymore now that she's his right hand angel now.
 * Irving Voleria in Wild Arms 2 formed both the heroes and the villains as a two-tiered plan to gather information as well as global resources in order to stop a sentient dimension from swallowing their world. The villains could use whatever tactics they wanted; and the heroes would be able to get the combined support of the world's governments who wanted them to stop the villains.
 * In Suikoden II, Jowy seems at first to be simply a Face Heel Turn, or maybe a Rival Turned Evil, when he betrays the city of Muse to the Highlands, assassinates the Mayor, and opens the gates to the invaders. It turns out, however, that he only did it because he knew that the only way to stop the monstrous Luca Blight, was from the inside - and so, he sold out Muse in order to gain Luca's trust, so that he could later betray him, bringing about his death at the hands of the hero. However, by the time Luca dies, Jowy has already married Luca's sister, and he thus becomes the ruler of Highland... and thus, he is responsible for the nation, and feels compelled to win the war. At the very end of the game, he is gambling on The Hero killing him, so that he can use his life-force to seal the Beast Rune that Luca unleashed earlier... whether it actually ends that way, however, depends on a few things...
 * Claudia Wolfe from Silent Hill 3. She acts cruel and evil to the protagonist and orders the murder of her father...but Heather eventually finds her diary, which is filled with entries about how much she's sorry for having to put Heather through all this, and only feels she must do it to bring the birth of paradise for Heather and everyone... everyone, that is, except Claudia herself. She believes in Hell, by the way. That's right, Claudia believes that she deserves to go to Hell for committing the necessary evil to save everyone else, meaning she absolutely embodies this Trope. Heather stops whatever the result would have been, but Claudia's intentions are definitely Well-Intentioned Extremist and self aware.
 * One possible interpretation in Knights of the Old Republic is that Revan waged war against the Republic in order to toughen them up and force them to become more militaristic to prepare them for future conflict that Revan alone foresaw.
 * The second game of the series has the other theory that it was to prevent societal collapse, or that it was all part of a a plan to prepare for ANOTHER enemy. Which he left to find.
 * This is supported by Kreia's question about Revan's "fall" in KOTOR 2: "Did Revan truly fall? Or did he do what was necessary to prepare the republic?" It is implied through the game's plot that the enemy Revan "prepared" the galaxy for were the True Sith, featured as the main baddies in the upcoming Old Republic MMO.
 * If you're going to bring Star Wars' Expanded Universe into this, the original Heir to the Empire trilogy portrayed Grand Admiral Thrawn as a ruthless warlord but a competent, at times even caring commander. The later books set him up as someone attempting to prepare the galaxy for invasion, which came with the Yuuzhan Vong.
 * Heck the newest ones set the Emperor himself up like this. Of course, it is more an excuse to keep himself in power than anything else.
 * Trias the Betrayer from Planescape: Torment. A fallen angel, he betrayed his kin and made a compact with the lower planes: He would cause mass acts of betrayal that would send the border town of Curst into Carceri and shift the balance of the planes towards evil. In return, he would be given control of an army of demons, which he planned to use to attack the gates of heaven themselves. Trias expected both this army and himself to be defeated, but hoped that such an act would be enough to rouse the celestials of the upper planes to take a more hands-on approach in the war against evil instead of doing what he saw as being Achilles in His Tent while evil was allowed to run rampant.
 * from Fire Emblem: Radiant Dawn. Acts affable to the end, . Can't be talked out of fighting the heroes, yet is happy upon defeat.
 * The following pattern is pretty common in Fire Emblem, especially in the endgame of Radiant Dawn:
 * The following pattern is pretty common in Fire Emblem, especially in the endgame of Radiant Dawn:


 * Seymour Guado fancied himself this, committing his innumerable sins because he genuinely felt that the world would be better off in the peace of death.
 * Then he turned out to be crazy. Well, more crazy.
 * Everyone in Iji: . Iji calls bullshit on both counts. And if you play in the standard action adventure style, they'll retort with Not So Different.
 * Tales of Legendia's Stingle BLEEDS this trope.
 * Aribeth in Neverwinter Nights (sort of).
 * Wallachia in Melty Blood. Turns out he was trying to prevent the end of the world, but every solution he came up with just made things worse. He became a Dead Apostle in order to get the power to hopefully avert it.
 * Speaking of the Nasuverse, we have Emiya Kiritsugu, from Fate/Zero and Fate/stay night, who is more than willing to shoulder all the evils in the world in order to save everyone.
 * Depending on interpretation, Yuan in Tales of Symphonia may be this or a Well-Intentioned Extremist. It doesn't really show him acting guilty for what he does, but then again, he doesn't show much emotion at all other than annoyance, and the storyline doesn't focus on him enough to give him a chance.
 * Being a fairly nuanced RPG, Dragon Age Origins allows you to behave like this in any number of situations, justifying a great deal of evil as necessary to destroy the darkspawn.
 * Loghain definitely feels this way about what he's done by the end of the game. Doesn't change the fact that he's a wee bit unhinged at this point...
 * In the sequel, stands out among an entire city of Well-Intentioned Extremists as one of the few who acknowledges that the actions taken to reach  goals are inexcusable.  doesn't  because  thinks it's the right thing to do... but because things have gotten so hopeless and  for so long that  sees no other option.
 * verges on this a few times as well, though it swings back and forth between this and Knight Templar given the Sanity Slippage means one moment insisting  are entirely in the right, and the next  seems more regretful and willing to acknowledge some of  are inhumane. Sometimes within the span of a few seconds.
 * Duke of Tales of Vesperia is the poster boy for this trope. His Entelexeia friend Elucifur was betrayed and killed by humans right after Elucifur helped them win the Great War. When the Adephagos eventually showed up, his solution for it was to destroy it using the energy absorbed from the life force of humans, including himself, effectively wiping humanity off the face of the planet but saving every other life form.
 * Master Mattias in Luminous Arc 2, who seems to continue his reign of terror of killing people to fuel Rega the demon sword with their souls, after being released from being sealed by Fatima and Josie.
 * In Rockman & Forte: Challenger from the Future, R-Shadow reveals to Mega Man that the reason he's come from the future to destroy him was to stop the problems that Wily has caused at its roots by destroying all of the robots of the past.
 * In Jade Empire, claims that he viewed the actions of the Lotus Assassins—killing political opponents and terrorizing the citizens of the Empire—as necessary to preserve the authority of the Emperor and the stability of the Empire.
 * In order to save the world, The Joy had to be perceived as a traitor and die by Naked Snake's hands. Needless to say, this caused some nasty emotional trauma to him.
 * Many of the Renegade decisions in the Mass Effect games can come across like this.
 * Saren Arterius, The Dragon of Mass Effect, believes his terrible actions such as  are absolutely necessary for the future of the galaxy. Tela Vesir, a Spectre in Mass Effect 2, provides this justification for her ruthless actions such as . She combines this with Not So Different and Shut Up, Kirk if a Paragon Shepard - who is working with the terrorists of Cerberus - calls her out on it.
 * The titular Kamui fighters are considered this since they use the inhumane Brain Uploading technology, but they where necessary due to the ZODIAC's laying waste to the earth at the time.
 * Balthazar in Baldur's Gate 2.

Web Comics

 * Othar Tryggvassen, Gentleman Adventurer! from Girl Genius is convinced that all Sparks are a menace to the world and seeks to eliminate all of them, ending with himself. Read his rant.
 * Also in the same comic, Klaus Wulfenbach took over Europe and rules it with an iron fist to prevent Sparks from running wild and terrorizing the populace with pointless wars. Of course, there are those who believe him to be a "mere" Well-Intentioned Extremist.
 * In the Thog Infinitron, the aliens that gave Thog his powers finally realize their mistake, and decide )
 * In El Goonish Shive, Abraham is this in order to kill the spawn of the Dewitchery Diamond.

Web Original

 * The SCP Foundation is pretty much a single giant example of dog shooting, doing what's necessary, and protecting you from things you don't need to know about.
 * Best example: Procedure 110-Montauk, which is never described in detail, but the details we are told about make it clear that what they are doing is subjecting an innocent young woman to a horrifically traumatizing procedure which they must modify to be even worse if she ever becomes desensitized to it, because if they don't, she gives birth to something undisclosed which poses a serious threat to everyone in the surrounding area and possibly life as we know it.
 * She-Beast of the Whateley Universe describes the international supervillain Dr. Diabolik like this, including talking about the thousands of people who have died in his efforts to advance the human race. She may be giving him more credit than he deserves though, since she is his daughter.
 * Now that we have seen him attack the entire city of Cincinnati, we know the truth. She didn't give him enough credit.
 * While Captain Jarvis in The Return sees himself as a Complete Monster for what he does, really he is just Necessarily Evil, this doesn't really reassure him. A lot of what Willard International Consulting does could fall under this trope due to existing in a Grey and Gray Morality series.

Western Animation

 * In the beginning of the Woody Woodpecker short Ration Bored, Woody himself flat out admits that he is a necessary evil. Given the context under which he said that, he could have meant it as a joke.
 * "Morning, Sam." "Morning, Ralph."
 * Amanda Waller in the DCAU.
 * Also, the Justice Lords. They see themselves as being able to accomplish what the Justice League cannot.
 * On South Park the "Hero" noted that sometimes blowing up hospitals is for the greater good.