A happy ending for ALL.

In short, some stories end in victory for the heroes and villains alike. TheBadGuyWins, but not in detriment of the hero, and certainly not as a DownerEnding.

How can the story achieve an end like this? Sometimes, hero and villain can work out a compromise to their mutual benefit. Sometimes, heroes and villains can find a way to bypass each other on the way to achieving their goals. Sometimes rain falls on the just and the unjust alike, and both manage to bring in a good harvest.

Perhaps the villain's goal was not bad in itself, so the hero prevented its disastrous side-consequences. Perhaps the PresidentEvil realizes that he can still be a ManipulativeBastard getting wealth and power all without the interference of the Congress, the Supreme Court and the press by stepping down to just being a CorruptCorporateExecutive. Perhaps what the villain really wants is money, and he learned that [[CutLexLuthorACheck he can get even more money legally]]. Perhaps he is in it for revenge, and drops everything when he realizes that his loved one was NotQuiteDead.

The trope is more likely to take place in productions for children or in humorous settings. It is easier to come to an agreement with a HarmlessVillain or and IneffectualSympatheticVillain than with an EldritchAbomination who wants to destroy the universe ForTheEvulz. Also, see MoralityTropes for ways to throw audience expectations off regarding hero/villain divisions.

Compare SweetAndSourGrapes, which may contribute to this ending for either or both sides of the {{Conflict}}.
SubTrope to HappyEnding.

This is an {{Ending Trope|s}}, so expect spoilers.



[[folder:Anime and Manga]]
* At the end of ''Anime/{{Macross 7}}'', the Protodevlin discover that [[spoiler:they can create [[LifeEnergy Spiritua]] by singing, rather than needing to steal from humans.]]
* In ''{{Naruto}}'', the very long-running villain Pain realizes that his and Naruto's goals are the same but winds up [[spoiler:preferring Naruto's approach over his own. He ultimately sides with Naruto and dies happy by sacrificing his own life to resurrect everyone he just killed]].
* Many villains in ''OnePiece'' end up being even more well-off than before they took on (and got clobbered by) the heroic Straw Hat Pirates. The most prominent case is Wapol, who was previously an oppressive king in a failing kingdom and, indirectly due to the Straw Hats' meddling, became a CEO for a toy company and now makes weapons-grade metal for the World Government's military (that only he can make). Both positions make more money than he ever made as king.
** [[spoiler:Er, subverted somewhat, as he goes on to rebuild his own Drum Kingdom after the two-year TimeSkip with a much more evil motif. Yeah, seems Wapol didn't learn diddly squat during his exile.]]
* ''Anime/IrresponsibleCaptainTylor'': Episode 23 features the conflict between Earth and the Raalgon coming to its climax... and then Tylor, the leader of Earth's forces, refuses to fire on the enemy, instead opting to pass through their lines peacefully. His unnatural luck, paired with his counterpart Dom's sense of honor (both of them repeatedly countered orders to fire from subordinates, believing in the other), caused the great conflict's final battle to end without bloodshed - a sympathetic retired admiral on Earth sent a message to both commanders congratulating them for both achieving victory (by going for peace).
* In ''Anime/GirlsUndPanzer'', the final confrontation between Miho and her sister Maho's schools ends this way. Miho, in winning the tournament, saves her school from being shut down, enabling her to return for her third year with all her friends, and validates her own style of tankery. In doing so, she also makes this also a victory for Maho, whose greatest desire and reason for serving AS Nishizumi heir is for Miho to be able to live and do tankery her own way, and be happy doing so.
* ''LightNovel/ShakuganNoShana'' ultimately ends this way. A god named Fu Xi was awakened by the prayers of his followers, the Crimson Denizens, and planned to create a new world for his subjects to live in, away from the conflict with the Flame Hazes. Under the impression that the amount of [[LifeEnergy Power of Existence]] that this plan would require would damage the Earth, the Flame Hazes fought back, and, in the end, sealed the god away. Cut to the present, and Fu Xi is released once again by Bal Masque, the antagonists of this series. This time, however, Fu Xi enters a contract with Yuji, and is renamed as 'The Snake of the Festival'. A second great war breaks out between the Flame Hazes and the Crimson Denizens, but Yuji and the god succeed in creating Xanadu, and were even able to do so without disrupting the fabric of reality around Earth. The conflict between the the two warring factions was now over, as the Crimson denizens relocate to Xanadu (alongside Shana and Yuji, to boot).
* ''Manga/CardcaptorSakura'' has this ending, as befitting a series with no real villains. The Clow Cards, antagonists of the first arc, end up with a new loving master who can sustain their power. Eriol, the antagonist of the second arc, only created conflict to help Sakura succeed, and took as much pleasure in her victories as she did. By the end of the series, with all the new relationships forged and old fences mended, everyone ends up better off than they did at the start.
* ''Manga/MedakaBox'' ends with about 99% of the cast happy: the villains were redeemed through ThePowerOfFriendship, and after a 10-year TimeSkip we see that everyone seems to have settled into adulthood quite well -- even the 5000-year-old FallenHero FinalBoss Iihiko (or rather, an echo of his pre-fallen self) finds a place to belong. The two main exceptions are Kumagawa, who nobody's heard from in years, and Anshin'in-san, who was killed by Iihiko; however, their friends believe that Kumagawa isn't the type of guy to contact them unless he needs help[[note]]And some fans suspect that he's HappilyMarried to Mogana Kikaijima, his former Student Council member with whom he had a ton of ShipTease[[/note]], and Anshin'in will more than likely be [[CompleteImmortality coming back to life in the near future]]. Also not counted is [[TheManBehindTheMan Professor Fukurou]], who was also killed by Iihiko, and was such a twisted creep that redemption was probably impossible.
** A smaller, more literal version happens at the very end where Zenkichi, meeting with Medaka for the first time in years, challenges her to a sparring match and says that if he wins, she has to marry him. Medaka grins and says that if she wins, [[CrowningMomentOfHeartwarming ''he'' has to marry ''her''.]]
* ''Anime/PuellaMagiMadokaMagica'' ends with Madoka [[AbstractApotheosis becoming a god of hope]] and creating a new system that provides [[BigBad Kyubey]] with the energy needed to stave off heat death, ''without'' sacrificing innocent people. [[SubvertedTrope However]] in ''[[Anime/PuellaMagiMadokaMagicaTheMovieRebellion Rebellion]]'' Kyubey decides they’re unsatisfied with this and [[FalselyReformedVillain goes back to their old ways]], which results in them [[DownerEnding screwing things over even]] ''[[DownerEnding worse]]'' [[DownerEnding than before]].

[[folder:Comic Books]]
* ''[[ComicBook/{{Asterix}} Asterix at the Olympic Games]]'': The Romans (who are only the [[DesignatedVillain Designated Villains]] in this story) train the legionnaire Gluteus Maximus to take part in the Olympic Games. When the Gauls find out about the Games, they send their own champion, Asterix. They discover too late that they are not allowed to use magic potions in the games, and Asterix can not beat well trained Romans. However, he plays a BatmanGambit on them, so they are all disqualified, and Asterix becomes the unopposed champion. But he did not take the Palm of Victory home: as he had no use for it, he gave it to Gluteus Maximus, who is promoted to Centurion, and Centurion Gaius Veriambitius is promoted to senator.
* The first appearance of Arkon, in ''Franchise/TheAvengers''. He comes from AnotherDimension, and the rings of his world (similar to our sun) begin to collapse and shut down. He discovered that the first atomic explosion could light the skies for a brief time, and a higher explosion at a certain place would light Polemachus forever. Of course, Earth would be destroyed, but who cares? The Avengers follow him to that dimension, and then again to our world... except for Iron Man and Thor, who stayed in Polemachus. In no time, Iron Man built a machine lighted by Thor's lighting, that solved the problem without destroying earth.
* ''Comicbook/WhatIf ComicBook/CivilWar'' has an alternative ending for the civil war. Both sides of the conflict save Goliath from the clone of Thor, and then Captain America and Iron Man met in an office, discussed the problem as adult people, and find a way to prevent superheroes doing disasters as in Stamford and, at the same time, keep their secret identities safe.
* In the ''[[ComicBook/ElfQuest ElfQuest Holiday Special]]'' episode there's a major grudge fight between Cutter and Rayek where they almost end up killing each other. The win-win part is that it lets Cutter burn out his (admittedly justified) aggression toward Rayek, allowing them to become allies, if not actual friends just yet.
* ''ComicBook/JLAAvengers'': The heroes get a great victory, the Grandmaster win a game... and Krona, as a cosmic egg, would experience first-hand the birth of the universe, the knowledge he was seeking all along.
* The first story arc of the ''ComicBook/YoungAvengers''. Hulking discovers that he is a Kree-Skrull mongrel, son of Princess Anelle and Captain Marvell. The Super-Skrull want to take him to the Skrull homeworld, the Kree want to take him to the Kree homeworld, and he just wants to stay in Earth. How do we deal with this? He proposed to stay a year in each world, to know each one, and then decide. Kree and Skrull are satisfied. And when they leave... the real Hulking shows up, he's not going anywhere: the Kree left with the Super-Skrull posing as Hulking, and in a great position to spy on them.

[[folder:Folk & Fairy Tales]]
* In ''Literature/{{Bearskin}}'', a soldier successfully escapes the DealWithTheDevil he made out of desperation with a tidy profit, and gets a loving wife too. As for the devil, he proudly announces at the end that although he lost the soldier's soul, he gained the souls of his two new sisters-in-law in exchange: they had committed suicide out of envy when they saw what they had rejected.
* The tale of [[http://www.pitt.edu/~dash/type1675.html Peter Ox]] is an even better example: TheBadGuyWins, but an odd brand of HilarityEnsues and the farmer and his wife and their new step-son all end up living together HappilyEverAfter to the end of their days anyway. In this case, it's also win-win-win, as the titular Peter Ox is basically a bystander who just happens to reap great benefits when he gets caught up in the cover story the bad guy fed the farmer and his wife.

* ''Film/WinWin'' only sort of has a Win Win Ending. Sure, Leo gets to stay in his own house, Kyle gets to stay in New Providence, and Cindy is out of the immediate picture -- but she gets $1500 a month for nothing while Mike has to take a second job and Kyle may have blown his chance at a wrestling scholarship.
* A version in ''Film/ThorTheDarkWorld'': [[spoiler:Thor gets to do what he wants: travel the worlds, righting wrongs, fighting evil, and being with Jane Foster, without worrying about being king of Asgard, which he doesn't ''want'' to be anymore. Meanwhile, Loki gets what ''he'' wants: the throne of Asgard -- which even Odin and Thor came to believe he was better suited temperamentally to occupy than Thor -- no one's the wiser, his adopted mother's killer dead, and Thor out of the picture). Even better, everyone else thinks he died a hero's death.]]
* ''WesternAnimation/TheLegoMovie'' ends with the villain being redeemed and the heroes fulfilling their goal. Even Emmett's romantic rival, Franchise/{{Batman}}, agrees to let him have the girl.
** ''WesternAnimation/TheLEGOBatmanMovie'' follows the trend; Batman saves Gotham from destruction and gets a surrogate family out of the deal, while the Joker finally gets Batman to admit [[FoeYay their relationship is actually meaningful]] and that he hates Joker.

* The ending of ''[[{{Discworld/Eric}} Eric]]'' has Rincewind & Eric happy because they've escaped Hell, the demons and damned souls happy because Hell is back to the way it was before Astfgl took over, and Astfgl is happy because he's got the boring office job of his dreams.
* ''Literature/HowTheGrinchStoleChristmas'' ended with the Grinch being reintegrated into Whoville to everyone's benefit.
** Both the [[WesternAnimation/HowTheGrinchStoleChristmas animated]] and [[Film/HowTheGrinchStoleChristmas live action movie]] adaptations of this story heavily implied that his thieving in some ways opened the Whos' eyes to how overly materialistic they'd been about Christmas, such that the [[HeelFaceTurn moral reformation]] was a two-way street.
* The ''Literature/SwordOfTruth'' series ends with Richard using the Boxes of Orden to create an AlternateUniverse without magic for the [[AntiMagicalFaction Imperial Order]] and sending them all there.
* In ''Literature/TreasureIsland'', the heroes did finally get their treasure. So did the villain Long John Silver, who [[KarmaHoudini escaped justice]] with several hundred pounds of it. In the words of protagonist Jim Hawkins, "I think we were all pleased to be so cheaply quit of him."
** Disney's ''Disney/TreasurePlanet'', being a straight InSpace adaption of ''Treasure Island'', has the same 'everybody goes home happy' ending, including Silver escaping with a bit of treasure and his freedom.

[[folder:Live Action Television]]
* In ''Series/{{Graduados}}'', everybody was happy in the end. The true loves were united, the villains were redeemed by ThePowerOfLove, the bachelors became parents, the fat girl was accepted by everybody, the immature guy matured, the HappilyMarried parents of Andy stayed that way, and Vero stills provides Rock for everybody in her amateur radio. Long live Rock & Roll!
* ''Series/LosExitososPells''. The designated couple is together at last. The third one, the gay forced by his father to stay married with the woman, gets rid of him and leaves with his own love. Amanda, the evil assistant, got her own TV channel. And Franco Andrada, the big bad, is captured and sentenced to prison... but that's not the end! The narrative jumps 10 years, and the people that Franco met in the prison help him to begin a successful political career.
* In ''Series/StarTrekDeepSpaceNine'', Nog and sometimes Jake's recurring subplots about a ChainOfDeals usually end this way, with everyone getting what they want or ending up better off than at the episode's start. Most apparent in the episode "In the Cards", which ends with a montage of everyone in a better mood while the CaptainsLog voiceover remarks on the sense of renewed energy.
* The ''Series/DoctorWho'' 50th anniversary episode "The Day of the Doctor" ends with the humans and Zygons forming a perfect peace treaty, the Eleventh Doctor being told that [[spoiler: Gallifrey falls no more]], and even the War Doctor finding some hope to hold onto [[spoiler: in his final moments]].

[[folder:Newspaper Comics]]
* In ''ComicStrip/{{Dilbert}}'', the much-despised PointyHairedBoss often comes into conflict with his workers over their efforts to do as little work as possible and still get paid -- but [[http://dilbert.com/strips/comic/1993-10-17/ not always]].
* [[http://john.seikdel.net/gocomics.php?date=811102&comic=blm This]] ''ComicStrip/BloomCounty'' strip, which also [[TropesAreNotBad demonstrates an upside]] to BookBurning: as long as the burners are ''buying'' their kindling, the customers are satisfied, the stores that sold them their materials get paid, and the offending creator of the works destroyed gets another big fat royalty check.

[[folder:Tabletop Games]]
* ''TabletopGame/MageTheAscension'' can end with one of these in the End Times book ''Ascension.'' It's a long uphill struggle, but so long as the players survive the disasters overtaking the world, succeed in uniting the Traditions and the Technocracy under a peaceful banner and stop the Grand Harvester of Souls, ultimately the forces of Paradox break down in the wake of the ongoing Avatar Storm; humanity [[AscendToAHigherPlaneOfExistence transcends the bonds of physical reality]], and ''everyone in the game is rewarded with a happy ending.'' The Mages all see their visions of magic realized as true in their own private worlds; the [[WellIntentionedExtremist Technocracy]] gets the utopia it always wanted, with every possible vision of a perfect world coming true - from the NWO's vision of a perfectly ordered society, to [[{{Cyborg}} Iteration X]]'s dream of a technological [[TheSingularity Singularity]]; the [[CloudCuckooLander Marauders]] all have their own private dreamworlds where they can play with reality without hurting anyone; even ''[[OmnicidalManiac the Nephandi]]'' get a happy ending, willingly punishing themselves with the Hells they wanted to descend to.

[[folder:Video Games]]
* In the ''Firestorm'' extension for ''VideoGame/CommandAndConquerTiberianSun'', both GDI and Nod are better off at the term of their EnemyMine situation.
* ''VideoGame/FinalFantasyXII'' ends this way. The heroes get their homeland's sovereignty back and the [[AntiVillain villains]] achieve their goal (which conquering the area was a necessary step in):[[spoiler:overthrowing Ivalice's JerkassGods]].

[[folder:Western Animation]]
* ''WesternAnimation/{{Animaniacs}}'': ''WesternAnimation/WakkosWish'' ends with [[spoiler:everyone getting his and her wish]].
** [[spoiler:[[BrokenAesop Except]] [[ButtMonkey the Mime]], [[EveryoneHatesMimes of course.]]]]
* Lampshaded in ''[[ComicBook/{{Asterix}} Asterix and Cleopatra]]'', where Cleopatra orders an architect to build a huge monument in 3 months. If he does it, he will be covered with gold, if he does not, he will be hurled to the crocodiles. Of course, he finished the building in time. In the last scene, all the characters (Romans, Egyptians, Caesar, Cleopatra and the 3 Gauls) share a celebration. The narrator points that everybody is happy, everybody is eating, everybody is drinking, everybody is enjoying the happy ending... well, almost everybody. And then we saw the angry crocodiles with protest banners, because nobody was sentenced to be their food.
* ''WesternAnimation/MyLittlePonyFriendshipIsMagic:'' In the two-part series opener, the heroines save Equestria from Nightmare Moon’s attempted eternal night. In the process, Nightmare Moon is reverted to her pre-villain identity as Princess Luna. After [[DefeatMeansFriendship she asks forgiveness for her wrongdoing]], the episode ends with a celebration in honor of Princess Luna’s return. (And the entire reason Luna had turned to villainy in the first place was because she thought the ponies didn’t love or respect her.)
* ''{{WesternAnimation/Superfriends}}'': This happened at the end of several of the first season (1973-74) episodes.
** "Dr. Pelagian's War". The title ecoterrorist uses his control of the weather and the oceans to try to stop three business people from polluting. Although the {{WesternAnimation/Superfriends}} capture him, all three of the business people agree to stop their polluting so he effectively wins.
** "Too Hot To Handle". The alien Solar Terrarians require a hot climate to be comfortable, but they've polluted their planet so much that its climate has grown too cold for them. They try to alter the Earth's climate to make it hot enough so they can live here (which would kill all humans on Earth), but the {{WesternAnimation/Superfriends}} foil their plan. The Super Friends go to the alien's home planet and clean up the pollution, allowing the aliens to continue to live there in comfort.
** "The Weather Maker". The inhabitants of the frozen country of Glacia need warmth to survive, so they plot to alter the course of the Gulf Stream. Unfortunately this would cause massive weather disruption in the rest of the world, so the Super Friends stop them. They discover that the machine used to alter the Gulf Stream has tapped into an undersea source of geothermal energy which will warm up Glacia.
** "The Watermen". An alien spaceship runs out of fuel and crashes on Earth. The aliens try to extract more fuel (silicon) from seawater, but this causes a red tide-like effect in the ocean. The {{WesternAnimation/Superfriends}} track down the aliens and stop their mining activities, but also provide them with enough silicon to return home.
* WesternAnimation/TheLegendOfKorra features one of these at the finale of the fourth season. The BigBad is defeated, but does not die, and gets to see her dream of the Earth Kingdom brought to peace come true, just not in the violent manner she tried for. Korra fully recovers her powers and has ushered the world into an unprecedented era of peace. She also opens a new spirit portal in Republic City, meaning humans and spirits can travel easily between both worlds.

[[folder: RealLife]]
* Almost the definition of commerce if it works as intended (note the qualifier). For instance, the Chinese had a great craving for jade and UsefulNotes/TheRomanEmpire had a great craving for silk, and after a ChainOfDeals through the Silk Road by relays of {{Intrepid Merchant}}s, each managed to get it. A little more complicated than a simple trade, as Romans didn't have jade but they did have gold, with which they could buy jade in central Asia.