[[quoteright:274:[[TabletopGame/{{Hecatomb}} http://static.tvtropes.org/pmwiki/pub/images/itwasonlyadream4_4785.png]]]]

Around fifty minutes into the program, really weird stuff starts happening, like {{little people|AreSurreal}} juggling while riding a tricycle around a bewildered protagonist. Then the protagonist realizes, just as you do, that this has all been a dream, a really bad hallucination, or some other escape from reality.

Sometimes, the character awakes after the dream, realises it was all "just a dream" (often actually saying this to himself, which rarely happens in real life), sighs with relief, and then sees an artifact lying next to him that was ''in'' the dream. This usually will leave protagonist and audience wondering "OrWasItADream", however it may also be an opening gambit in a DreamWithinADream sequence. Sometimes the dream lasts longer than one episode -- entire seasons have been known to turn out to be dreams. Often, when the dreamer awakens, the really epic events (death of a major character, etc.) from the "dream season" will [[ResetButton be reversed]]. Or maybe the [[SchrodingersButterfly "waking up"]] is the dream?

If other characters start acting out of character or otherwise just don't seem to be quite themselves during the dream sequence, expect lots of finger-pointing and exclamations of "''AndYouWereThere!''" when the dreaming character awakens.

Normally, [[{{anticlimax}} this really grates on the audience]], but it can be done humorously, and if it was just one episode of a larger whole, it can [[AuthorsSavingThrow undo damage done]] by having a WriterOnBoard. An especially useful device in horror movies, where it can be used to subject the characters (and audience) to all manner of fit-inducing terrors without really affecting the narrative. However, if it's done badly, expect some audience members to be seriously annoyed, as it might feel like a DeusExMachina. Even if it's done well, it may require a lot of WillingSuspensionOfDisbelief, since RealDreamsAreWeirder.

One of the StockEpilepticTrees. It's also a popular trope for {{music video|Tropes}}s.

Variant form of the ResetButton. See also CrashingDreams, OrWasItADream, PinchMe, DyingDream, and CatapultNightmare. Compare with NestedStoryReveal, a similar trope that lacks the dream aspect. Often {{deconstructed}} with the DreamApocalypse. If the dream is a quick-hit gag instead of a major element of the narrative, you have a DaydreamSurprise. When the trope is {{inverted|Trope}}, it may turn out ThatWasNotADream. Not to be confused with CuckooNest.

'''As an {{Ending Trope|s}}, [[Administrivia/HandlingSpoilers all spoilers on this page are unmarked]].'''

----
!!Examples:

[[foldercontrol]]

[[folder:Advertising]]
* The delightful Kia Sorento commercial "[[http://theinspirationroom.com/daily/2010/kia-sorento-joy-ride/ Joyride Dream]].''
* The Pepsi Twist commercial when Music/OzzyOsbourne notices his kids drinking Pepsis, only for them to actually be Pepsi Twists, and that his kids are actually the ''Osmonds'' in [[LatexPerfection full rubber bodysuits]]. Ozzy starts screaming, only to wake up and realize that it was just a nightmare, though the Pepsi Twists are still real...
* RC Cola had an animated ad where [[WesternAnimation/KingOfTheHill Hank Hill]] is riding on his mower, drinking an RC, at peace with all things. Bobby runs up excitedly shouting "Hey dad, I made the ''football team!''" Hank smiles - and wakes up in his hammock. Bobby runs up excitedly shouting "Hey dad, I made the football team ''brownies!''" Hank wails in horror.
* A not-so-PG advertisement -- lingerie company Agent Provocateur had a handsome secret agent donning his L'Agent sunglasses and [[GogglesDoSomethingUnusual being able to see all the woman at a party wearing AP's 2013 Winter Catalogue]]. When one of the girls starts giving him a lapdance in BlackBraAndPanties, our hero is woken up by his foreman on a construction site and told to get back to work.
[[/folder]]

[[folder:Anime & Manga]]
* One of the DVD specials for ''LightNovel/{{Durarara}}'' cleverly inverts this trope. The opening scenes show downright absurd scenes, like UFO sightings. As these are shown, Walker muses that most people would call his fantasies a pipe dream. The rest of the episode is narrated chronologically backwards, revealing that the strange occurrences at the beginning of the episode are ''not'' part of Walker's fantasy.
* "Toys in the Attic" from ''Anime/CowboyBebop'' was implied to be this. It's a bizarre episode that involves a blob monster emerging from a broken fridge and nearly killing most of the crew. The next episode opens with Spike waking up from what appears to be have been a very bad dream.
* The Season 2 opening of ''Manga/{{Genshiken}}'' starts with Sasahara opening a book... and then goes into an opening for a Mobile Suit Gundam-like series starring the Genshiken characters, including a helmeted Madarame as the antagonist. Then Sasahara wakes up and we see that he was looking at a sketch of the club members.
* In ''Manga/InuYasha'', Kagome gets tricked into dreaming she is living a normal school life on two distinct occasions. The first is during a battle with Tsubaki, and the second was one of the battles with Naraku. The Tsubaki episode is interesting, since she sees many of her friends as RealLife personas (Kikyou for instance is her archery instructor at school).
* The second season of ''Literature/ShakuganNoShana'' starts with Yuji trapped inside a dream (created by the real first villain of the season). Yuji picks up on some deja vu, but when complete scenes and defeated villains from the first season start showing up, then he knows something's wrong. No one will listen to him or tell him anything he--the one the dream is based on--doesn't already know. The dream falls apart once he pieces everything together, and he wakes up in the middle of a battle with that villain.
* Repeatedly used in several episodes of the anime series ''Anime/ErgoProxy'', due to the proxies, god-like beings who can shape-shift and invade human minds with horrifying ease. Several characters are subjected to this trope, but none more so than the main character, Vincent Law, to the point that when unexpected things happen in ''reality'' he assumes it's yet ''another'' dream. Half the time he's correct. Other times he's outright ''told'' he's being subjected to a dream, or is it a dream within a dream, [[OrWasItADream or has it been reality all along?]] It's a wonder this show made any sense at all.
* One episode of ''Manga/MermaidMelodyPichiPichiPitch'' was a very, very strange New Year's dream in which Lucia uses her IdolSinger powers to become famous.
* The idea is poked fun at in the 6th episode of ''Manga/SayonaraZetsubouSensei'''s second season.
* ''LightNovel/HaruhiSuzumiya'':
** Inverted in the [[WhamEpisode sixth episode]] (chronologically). Kyon falls asleep, complete with explanations of REM- and Non-REM sleep and colorful visuals. Just at the climax of the episode, with Haruhi and him kissing, it abruptly cuts off and he falls off his bed. He then rants "What kind of dream was that? [[FreudWasRight Sigmund Freud is gonna be laughing at me!]]" The next day, he meets Haruhi wearing a ponytail which he told her in the dream, looks good on her. After she also claimed to have had a bad dream, it is entirely obvious that it ''wasn't'' a dream.
** Koizumi suggests this trope as an ending to Haruhi's movie that will subconsciously convince her that the events of the movie are fictional. This suggestion is met with blank stares from the rest of the Brigade. They go with a variant of OurLawyersAdvisedThisTrope instead.
** Snowy Mountain Syndrome is a complicated and strange experience involving a massive blizzard and a mysterious mansion where the brigade seeks shelter, and are then trapped. When they escape after several hours, they end up back on the sunny ski-slope, and not ten minutes have passed. Kyon and Koizumi planned to just feign ignorance when Haruhi brought it up, which would lead her to believe it was a dream, but Mikuru screwed up that plan by admitting she remembered everything as well. Koizumi had to BS something about a mass hallucination, which made no sense, but Haruhi believed it anyway.
* One of the [[GainaxEnding great many]] interpretations of episodes 25-26 of ''Anime/NeonGenesisEvangelion''. The episode 26 AU started with this... then it turned out that ''the AU'' was the dream, created to see if Shinji has a future without piloting his Eva.
* Done humorously in the form of episode one of ''Anime/TheTowerOfDruaga''.
* A manga chapter of ''Manga/{{Mahoraba}}'' went from mild out-of-character moments for the other characters to intensely bizarre rooftop battles against a giant monster. At the end of the chapter, there is a chart which grades the reader based on when they figured out that the chapter was in fact a dream.
* ''Manga/AlienNine'' has main character Yuri doing this OncePerEpisode, each dream focusing on her fear of aliens, and getting more and more horrific until the MindRape sequence in the final episode.
* The first ''Manga/DetectiveConan'' OVA has the main character work out that he is in a dream ''while he is still in it''. Used more gratingly in the 13th movie where a scene used prominently in early promotions [[NeverTrustATrailer turns out to be a dream at the start of the movie]].
* Ban Mido from ''Manga/GetBackers'' uses his Jagan to produce hallucinations for exactly one minute. At many points, the audience also sees what the person is dreaming. Typically, this happens each time the audience is led to believe that the heroes have been killed. Once the minute ends, the dream "shatters," and all is well.
** The entire series turns out to be just a virtual dream in the end.
* Frequently subverted in ''Manga/NightmareInspector'', though grandly played straight in the end when the characters learn that not only is Mizuki's brother Azusa, vessel for the Baku Hiruko before Chitose took over, still alive, he's been concocting the biggest, darkest, and most twisted nightmare ever, hoping that it will consume him and [[WhoWantsToLiveForever he can finally rest in relative peace]]. Turns out? Chitose was a figment of his imagination. Everything that happened since Chitose took over was all just Azusa's nightmare, that Mizuki and Hifumi were trapped in.
* In ''Manga/RanmaOneHalf'', Ranma dreams that Jusenkyō dried up and wakes up terrified that he won't be able to lift the curse. He, Saotome, and Happōsai then use a MagicMirror to TimeTravel. They first visit a future where Ryōga and Akane are married with children, then visit Jusenkyō to prevent their past selves from falling in the spring in the first place, but Happōsai sabotages it after he's left behind. Then Ranma wakes up again -- the entire episode was just a dream, and the intro was a dream within a dream. He's understandably paranoid that he hasn't really woken up yet.
* ''Manga/BakiTheGrappler'' has a humorous example: the fight between Oliva and Guevara ends with Guevara the winner, then being introduced to the president of the United States, who begs him for forgiveness, and Yujiro, who tells him he's the strongest warrior in the world. He marvels, at this, saying it all seems like a dream...which it is. A dream he had after Oliva knocked him out with a punch that embedded him in the ground.
* Episode 287 of ''Manga/{{Bleach}}'', but with a twist. We're initially led to think that it's Ichigo's dream but it turns out to be a DreamWithinADream of Isane Kotetsu's.
** Done again with episode 304, although this time, it's Komamura's.
** Happened straight in the comic that came with UNMASKED. Ulquiorra dreams up the memories of his past.
* Nastily inverted in ''Manga/{{Berserk}}''. In the midst of the massacre under the Eclipse, Corkus becomes convinced that the entire plot of the series was just a dream. After all, (present horror excluded) it was much too good to be true. His absolute certainty did not prevent his brutal death.
* The episode "Haruhi in Wonderland" of ''Manga/OuranHighSchoolHostClub'' is all Haruhi's dream, but it's obvious from the beginning that it is either a dream or at least a nonsense episode based on Literature/AliceInWonderland. What makes the episode really neat is its use of [[FridgeLogic dream logic]] and the way she wakes up by slowly realizing that people and places are not exactly as they are in real life. The final realization that causes her to awaken is trying to hug her mother who was already dead when the series began.
* In ''Webcomic/AxisPowersHetalia'', [[MoeAnthropomorphism Japan]] tries to convince himself that the [[HoYay "Private Lesson"]] with close friend [[ChivalrousPervert Greece]] was [[CrowningMomentofFunny All Just A Dream]]. Even when he woke up naked—[[DidTheyOrDidntThey or at least shirtless]]—next to him...
** The nations in general try to convince themselves this when something weird[[WidgetSeries (er than usual)]] happens.
* The third-to-last episode of ''Anime/GunXSword'' implies the series so far was a dream of TheRival Ray, with him waking up back home. Actually THAT is a dream he's having as he dies.
* The ''Manga/OnePiece'' short "Jiginai Time" (or "No Respect Time") [[MakesJustAsMuchSenseInContext apparently takes place entirely within the dream of an incredibly bored, talking moai]], much to the main characters' chagrin.
* The last ''Manga/DailyLivesOfHighSchoolBoys'' skit in the anime, ''High School Boys and ...'', was Tadakuni's dream which contained much of the fandom's desires. Interestingly enough, this has [[WildMassGuessing generated a fair bit of discussion]] [[http://i.imgur.com/a9vqT.jpg?1]], as the punchline to the skit as presented in the anime (incredibly similar to the start of a skit way back in episode 4) makes it seem that ''9 of the 12'' episodes of the anime ''never happened'', invalidating all of the characters introduced since then.
** In the un-animated skit ''High School Girls are Funky -- Tolerance'', [[AlwaysSecondBest Yanagin]] again dared NAGO to test how long can they stay in the sauna. While most of the skit showed Yanagin won over NAGO... it turned out Yanagin fell unconscious earlier than NAGO, Ikushima and Habara; what we saw for the previous pages were just her dream while she was unconscious.
* Two episodes of ''Anime/{{Patlabor}}''. In the first, Shige gets knocked out and dreams that he moves to New York to become part of a team of {{Toku}} heroes. In the second, it ''looks'' like Noa dreams that she's the hero of an Series/{{Ultraman}} parody... but it turns out it's her teammate Asuma who dreamed it when he fell asleep listening to Shige talk about his aforementioned dream sequence in the hospital.
* Parodied in ''Manga/{{Sketchbook}}'', when Tsukiyo hands in a manga she's written, only to be told by the editor that she has to rewrite the ending, since having it be All Just A Dream is bad writing. Then she wakes up in her bed.
[[/folder]]

[[folder:Comics]]
* The last issue of ''ComicBook/{{Gen 13}}'', vol. 1 combined this with a DownerEnding: The team -- along with various other gen-active teens they'd met along the course of the series -- has one last hedonistic, live-like-there's-no-tomorrow-cuz-there-ain't good time before "The End". Turns out this was all in Caitlin Fairchild's head, an extended hallucination brought on by the effects of another gen-active's powers in the split-second before a DeathTrap disintegrated them all (they got better).
* This has happened innumerable times in {{superhero}} comics as an "out" for a wacky story that doesn't fit into canon. So much so that it was common to include the blurb "Not a dream! Not an imaginary story!" on covers to reassure readers that no such cop-out would be used. Since CoversAlwaysLie, they'd usually find some ''other'' cop-out that meant the events still weren't what they seemed.
* Bruce Jones' run on ''Comicbook/TheIncredibleHulk'' was retconned in this manner, with Creator/PeterDavid's subsequent run explaining that it was all a hallucination brought on by Nightmare.
* The high-profile ''Franchise/{{Batman}}: RIP'' storyline is (among other things) an attempt to bring the wackier [[TheSilverAgeOfComicBooks Silver Age]] adventures of the Dark Knight in-canon by explaining them as hallucinations caused by sensory deprivation experiments. An original quote from one of those Silver-Age tales is a prominent part of the storyline (and very typical of the trope): "It would be far easier to consider this a dream... but how can I? For in my hand, I hold the Bat-Radia!"\\
The sensory deprivation experiment was not a {{retcon}}, but was ''itself'' a framing device in an actual Silver Age story. An alternative explanation provided for some of these episodes is the insinuation that they were hallucinations brought about by exposure to Joker toxin, Scarecrow's fear gas, etc.
* ''ComicBook/TomStrong'' issues 29 & 30 had the eponymous hero awaken from his superheroic life into a gray world with no wonder or adventure where he was just a factory worker with a case of bad self-esteem. Then the clues mount that he really is a superhero - only to discover that he was a failed military experiment and [[CuckooNest all of his memories of a heroic life were delusions]]. But at the last moment, he breaks out of the hallucination - back into the superheroic world where the BigBad of the story had been forcing him to hallucinate. He said later that he knew the world he had been in wasn't real because it was all gray, with no sense of hope or wonder in it. (A cynical person might just say that he was unable to cope with the truth and retreated into his dream-world ... à la that much-referenced episode of ''Series/BuffyTheVampireSlayer''.)
* ''Comicbook/TheSandman''. Quite a bit of it really is just a dream, but that doesn't make it any less real. "I give you - [[http://en.wikipedia.org/wiki/List_of_characters_in_The_Sandman#Alex_Burgess eternal waking]]..." Brrrrr...
* Two ''Comicbook/{{Spawn}}'' issues written by Creator/NeilGaiman and Creator/GrantMorrison has Spawn dying accidentally after a fight with an angel warrior, and goes to a special level of Hell, where he finds all Creator/MarvelComics and Creator/DCComics superheroes imprisoned, and with help of [[LawyerFriendlyCameo Superman]], who gave him his power, he sets them all free. Next issue happens back on Earth, with the narrator saying "Let's come back to reality. Spawn has a bad dream last days."
* Sometimes used as TheTeaser in ''Comicbook/QuantumAndWoody''. For example, issue #5 starts with Woody, Quantum, and Amy working together as a tightly-coordinated counter-terrorism team to stop a criminal called Othello. In reality, it's a dream induced after Quantum was accidentally blasted off of a building in the previous issue.
* A story of ''Comicbook/TheFabulousFurryFreakBrothers'' from the early '70s has the trio staging a violent assault on a prison to free an incarcerated friend. Fat Freddy ends up cut off and bludgeoned to death by a horde of cops - but it's all just a dream, and Franklin is beating him with a rolled-up newspaper for eating a whole batch of hash cookies. Then, some seven years later, an extended story where they take a cross-country trip in a vintage RV ends in a full-scale riot at a Greenwich Village Halloween parade - but it's all just a dream, and Franklin is beating Freddy with a rolled-up newspaper...implying ''everything'' that happened between the two stories was Fat Freddy dreaming!
* There's a [[Comicbook/ThePunisher Punisher]] story where Frank goes back in time to the 30s thanks to Reed Richards and Nick Fury. He quickly infiltrates AlCapone's gang and kills every last mobster in Chicago along with Al, the idea being that by breaking the mafia's hold early on, there'll be no gang shooting in Central Park in the late twentieth century, saving Frank's family and preventing his StartOfDarkness. Then he wakes up.
* The infamous ''ComicBook/SpiderMan'' storyline ''ComicBook/OneMoreDay'' had Peter and Mary Jane's marriage retconned in a deal with the devil. [[ComicStrip/SpiderMan The newspaper comic]] didn't do the whole "deal with the devil" storyline but it did suddenly change, making Peter single again to fit in with the comic book line. Fan uproar eventually convinced the writers of the newspaper comic to retcon ''that'' change, and they did that by saying it was all just a dream. Now if only they could do the same with the main comic...
* Subverted in issue 5 of ''ComicBook/FishPolice''. Inspector Gill wakes up, believing he just dreamed that he was a fish — only to find that yes, he really is one. He didn't dream up a single thing that happened so far in the plot; he was just drunk when a lot of it happened. Cue the "WhatDidIDoLastNight" from Gill.
* The ''ComicStrip/KnightsOfTheDinnerTable'' story "Heroes on the Town" has Bob, Dave, and Brian actually running their characters as lawful good heroes, treating [=NPCs=] with respect and roleplaying rather than mindlessly hacking. The story ends with [[GameMaster B.A.]] waking up.
* ''ComicStrip/WhatsNewWithPhilAndDixie''. In [[http://www.airshipentertainment.com/growf/growfcomic/strips/growf_20100523.jpg this strip]] Phil and Dixie have a CatapultNightmare to wake up from a dream (shown in previous strips) in which their {{Character Alignment}}s were changed to Evil.
* ComicBook/UsagiYojimbo: Usagi stays with a peasant family, and at night their set upon by a demon which slays the mother and father, and eventually Usagi. The son wakes up and it's all revealed to have been a dream he had from eating too much candy. Usagi leaves and bids them goodbye. Then [[OurDemonsAreDifferent Jei]], known for slaughtering people who give him hospitality, shows up at the house and asks if he can stay the night.
* All the events of issue 26 of PaperinikNewAdventures "Time Escapes" are actually [[spoiler:the demo of a TV show of the XIII century]].
[[/folder]]

[[folder:Fan Works]]
* In ''FanFic/NobodyDies'', much of chapter 66 is Shinji having a dream (really more of a nightmare) about Zeruel slaughtering everyone.
** Season 4 is just a dream, made by Arael.
* {{Inverted|Trope}} in ''Fanfic/KyonBigDamnHero'', where Kanae was having a recurrent dream with parts... off. It was until after she kissed Kyon that she realized she was awake.
* Appears [[http://www.fimfiction.net/story/73406/rainbow-in-the-dark in the]] fic, ''FanFic/RainbowInTheDark'', where Rainbow Dash has an erotic encounter, after which she wakes up, building up the UST to even higher levels.
* In a parody fanfiction about ''Anime/DragonBallGT'', right after Goku's HeroicBSOD and BigNo when learning that after his 100 years with Shenron, his family and friends are dead., we return to Goku and Chichi's bedroom and he explains to her the ''entire events of GT'' as a nightmare. Then, it becomes a DreamWithinADream as Goku has a run in with Film/DragonballEvolution's Goku. The short story is on [[http://rulkout1993.deviantart.com/gallery/#/d2y63de deviantART.]]
* In [[http://tvtropes.org/pmwiki/pmwiki.php/FanFic/HeartAndEye Heart and Eye]] Xander has a conversation with Willow that turns out to be result of heavy painkillers
* The ''StarTrekNewVoyages'' episode "To Serve All My Days", involving a delayed effect of RapidAging that afflicts Chekov to the point where he may have died, in the final scene following the closing credits suggests that most of the whole episode was just a dream he had.
* In the ''StarTrekTheOriginalSeries'' fanfic ''FanFic/MemoriesBornOfFire'', Spock has a nightmare about what would have happened if Kirk had not survived the ''kal-i-fee''.
* ''[[http://www.fimfiction.net/story/545/Equestria Equestria]]'' is a ''WesternAnimation/MyLittlePonyFriendshipIsMagic'' fan fiction that suggests that the eponymous world is actually the elaborate fantasy world that was to be the [[TheVerse setting]] of a series of stories planned by a woman who was emotionally abused by her mother. She never got around to writing it and the emotional abuse that she suffered drove her into her dream world..
* [[http://www.fanfiction.net/s/6515261/7/Dalton Chapter 7]] of ''FanFic/{{Dalton}}'' starts out like this.
* One "episode" of ''FanFic/CalvinAtCamp'' features Calvin falling asleep and dreaming that he is in an AffectionateParody of ''Series/{{LOST}}''. The readers are aware the entire time that it is a dream.
* ''Fanfic/CalvinAndHobbesTheSeries'' has the opening of "Camping Trip Part 2", a surreal TimeSkip.
* In ''Fanfic/TheDetectiveAndTheDiplomat'', Franchise/SherlockHolmes is trapped in [[Literature/{{Discworld}} Ankh-Morpork]] and would rather believe that everything he is experiencing there -- from a demonstration of magic to a talking dog -- is actually a fever-dream. He's wrong.
* In chapter 8 of ''Fanfic/{{Weightless|MassEffect}}'', Shepard dreamed of Garrus tied up and interrogated her to make her spill out her feelings (which she was trying to keep to herself due to several reasons). She was woken up by the real Garrus and suddenly hit him in the face. After that, things got worse.
* ''FanFic/EdAbuse'': And by the last person you would expect it to be.
* In the stories ''Your Worst Nightmare'', ''The Love Triangle'' and ''Dream Away'' of ''[[Fanfic/TheLionKingAdventures The Lion King Adventures]]'', dreams are used by villains to try and defeat Simba.
* [[DiscussedTrope Discussed]] in ''FanFic/DirtySympathy'' when Apollo wonders whether the events of the story are actually happening, whether Klavier is actually real and if he is dreaming the whole thing to comfort himself. Klavier is all to quick to reassure him.
* In ''FanFic/MegaManRecut'', Future Shock ''may'' be this; it's ambiguous.
* In ''FanFic/TheDearSweetieBelleContinuity'', most of "The Sin of Envy, or a Mother's Love" is this, courtesy of a demon.
* In ''[[https://www.fanfiction.net/s/4496567/1/Midnight-Savior Midnight Savior]]'', it begins with Kim on Lorwardia in chains, being dragged to the gallows to be executed by beheading. The moment the blade falls, she wakes up screaming. While she was dreaming, she tried to wake herself up, convinced she's dreaming, but it seems it's actually happening. After waking up, she could almost feel the heat and dirt from the nightmare. But the worst thing for her was how it ''could'' have happened if Ron haven't saved her and killed the Lorwardians.
[[/folder]]

[[folder:Films -- Animation]]
* ''[[WesternAnimation/AnAmericanTail Fievel Goes West]]'' is written off as a dream Fievel had in the third ''An American Tail'' movie. But there was a TV series with the Wild West theme that aired prior to the 3rd movie (FridgeBrilliance when you realized that it's possible to stay in what seems to be forever in the dream world and then wake up to discover that only one night has passed in reality).
* Averted in ''WesternAnimation/{{Epic}}''. MK just really, really wishes it was.
* ''Disney/AliceInWonderland'': Alice begged herself to wake up at the very end- and succeed.
[[/folder]]

[[folder:Films -- Live-Action]]
* ''Film/TheWizardOfOz'' is the most famous film example, though there is a ''wee'' bit of room for alternate interpretation. In [[Literature/TheWonderfulWizardOfOz the book]] it is definite that Oz '''was''' real and Dorothy returns there several times in other books; Oz was changed to an elaborate dream in the film because producers [[ViewersAreMorons felt that the 1930s audience was too sophisticated to accept a straight on fantasy like that]].
* Two of Creator/LaurelAndHardy's short films used this example: ''The Laurel-Hardy Murder Case'' and ''Oliver the Eighth''.
* Hilariously played with in the ''Film/EnterTheDragon'' parody "A Fistful of Yen" in ''Film/TheKentuckyFriedMovie''.
* ''Literature/AmericanPsycho'' effectively repackages this into "And it was all a psychotic hallucination". [[MindScrew Or was it]]?
* ''Film/RomyAndMichelesHighSchoolReunion'': A large chunk of the film takes place in Michele's dream which isn't revealed to be a dreamed until the very end. This portion is so significant that most of the jokes from the trailer were taken from the dream sequence.
* In ''Film/TotalRecall1990'' we are LeftHanging as to whether or not the entire film after the point he goes to Rekall is real or a hallucination.
* Subverted in ''Film/FourteenOhEight'', where the protagonist "wakes up" from his harrowing ordeal in room 1408 to be told it was only a dream, only to find his surroundings demolished and stripped away to reveal that he is still in fact stuck in the hotel room. Bonus points for the film having run long enough to make you think it might be ending.
* Reality and dreams are blurred in ''Film/TheScienceOfSleep''.
* ''Stay (2005)''
* Throughout ''Film/PansLabyrinth'', there are strong suggestions that certain aspects of the plot may be All Just a Dream. WordOfGod [[http://twitchfilm.net/archives/008507.html debunks that possibility]], though that same god also explicitly tells you not to listen to him so in the end it looks like nobody's happy.
* In ''Film/TheShining'', it sometimes got difficult to tell what was real and what were projections of the family's minds. [[http://rogerebert.suntimes.com/apps/pbcs.dll/article?AID=/20060618/REVIEWS08/606180302 Roger Ebert's review]] talks at length on the subject.
* Subverted in ''Film/TheButterflyEffect''. At one point near the end of the film it looks like the story is gonna go out with a TwistEnding. As Evan's doctor explains that there are no journals, he asserts that everything that we've apparently seen so far is a delusion that Evan created to cope with the guilt of killing Kayleigh, describing alternate universes with colleges, prisons, and paraplegia. Then it turns out that the mental time travel ''was'' real when Evan goes back one last time.
* ''Film/TheDescent''. Did the crawlers exist, or was Sarah unable to handle the claustrophobia and stress of the already bad situation, causing her to imagine them and kill all her friends? All that can actually be said is that there was dreaming going on; where it started or ended is never made clear. (Their existence is confirmed in the sequel.)
** It's also more likely they exist (although not a certainty) in the original cut, where the ending of the US cut turns out to be All Just A Dream and the film ends with Sarah about to be killed by a horde of the crawlers while she's too wrapped up in hallucinations to even realize they're there. For obvious reasons, the sequel is based on the RevisedEnding instead.
* Related to this is the film ''Film/{{Atonement}}'' in which the entire conclusion of the plot (involving Briony taking back her evidence and Creator/KeiraKnightley getting back together with her boyfriend) from the wedding of the rape victim and her rapist onwards is from the imagination of Briony. She reveals that James [=McAvoy=]'s character in fact died while at Dunkirk and Cecilia was killed in the (real-life) flooding of Balham tube station by a German bomb.
* ''Film/VanillaSky'' (2001), directed by Cameron Crowe and starring Creator/TomCruise. Remake of 1997 Spanish film ''Abre los Ojos'', a.k.a. ''Open Your Eyes''. After a car accident that kills his girlfriend and disfigures his face, the protagonist is haunted by increasingly bizarre occurrences. The ending explains that everything that has occurred after the car accident has been a dream. In real life, after the car accident, he signed a contract with a company that preserves its clients' bodies after death and keeps their brain waves active in lifelike virtual reality dreams, and then committed suicide. The bizarre occurrences are explained as glitches in the program. In the end, he decides to wake up from the dream program.
* Ripley's nightmare of having an alien rip out of her chest near the beginning of ''Film/{{Aliens}}''. This is especially misleading since some of the marketing material played-up that the aliens would be attacking Earth... well, a space station around Earth... well, a dream sequence on a space station near a planet which could maybe possibly be Earth.
* In ''Film/{{Hackers}}'', the two main characters (played by Jonny Lee Miller and Creator/AngelinaJolie) each have erotic dreams about the other at the same time.
* In ''Film/{{Brazil}}'', a dystopian sci-fi film, the entire, increasingly weird, ending of the film is revealed to be a fantasy in the mind of protagonist to "escape" from being [[ColdBloodedTorture tortured]] in a scene near the end of the film.
** This was edited out in the "Love Conquers All" edition; the "reveal" is removed, moving the events from fantasy to reality.
* Played very non-comedically in ''Happiness'', where one of the characters apparently goes on a rampage through his neighbourhood with a machine gun, only to wake up. He's a... troubled guy. We later find out he's a paedophile.
* ''Film/GiveMyRegardsToBroadStreet''. All portions of this film with plot are a dream, so it's a good thing this is a [=McCartney=] musical. This dream even has a DreamWithinADream ''inside it.''
* ''Film/{{Phantasm}}''...[[MindScrew or was it?]]
* Lampshaded/parodied in ''Film/TopSecret'': Nick Rivers passes out under torture by the East German secret police and dreams he's back in high school about to take a test for which he hasn't studied. He wakes up back in the torture dungeon and smiles with relief, while being whipped: "Oh, thank ''God''."
* The first ''Film/ANightmareOnElmStreet1984'' toys with the boundaries between dreams and the real world throughout the film. At the end, the FinalGirl wakes up and thinks her entire ordeal has been a dream. Then Freddy takes control of the car she's in...
* ''Film/DeadEnd''. Early in the film, the characters are all weary and very nearly get involved in a car crash, startling them awake. From here, things start to get weird. By the end, it transpires that [[TotalPartyKill nobody woke up in time to prevent the crash]].
* A similar ending closes the movie ''Reeker''.
* Most of ''Film/{{North}}'' is the title character's dream. Unlike in the original book, where the events did actually happen to the title character.
* ''Film/TheCabinetOfDrCaligari'' gives a [[UnreliableNarrator particularly]] [[ThroughTheEyesOfMadness jarring]] [[CuckoosNest version]]. Notably this was because of the ExecutiveMeddling, which the creators despised, as the whole point was to show an evil, monstrous authority figure, but the censors of Weimar's Germany didn't like it. They apparently even made an ''extra'' twist for an alternative version where it ''wasn't'' dream after all, despite of all the attempts to convince otherwise.
* In ''Film/MirrorMask'', (boy, Creator/NeilGaiman sure loves dreams) Helena figures out pretty early on that the entire MagicalLand is all a dream, populated by [[AndYouWereThere characters based on people she knows]]. However, the possibility is certainly left open that it isn't ''just'' a dream, when she meets someone who was in her dream, but she'd never met before in her day-to-day life.
* Happily subverted in ''Film/TheForbiddenKingdom''. He's back in his own world, but has mysteriously gained self-confidence, and is a better fighter. Was it all a dream?... oh, wait, the old shop-keeper is actually the now-immortal Creator/JackieChan character!\\
They didn't even try to play it straight. When he wakes up on the pavement, the cut he received in his "dream" is still there.
* ''Film/TimeBandits'' seems to use this at first, with Kevin returning from being enveloped by smoke from one of the remnants of Evil by seemingly waking up in his room during a house fire... but it doesn't just settle for an OrWasItADream and goes for a full-on subversion. The film ends with Kevin finding the photos he took on his journey, and discovering that the fire was started by the final fragment of Evil getting lodged in the toaster oven -- which his parents promptly touch despite his warning and ''explode''. Also, it's implied that the fireman that rescued him actually ''is'' King Agamemnon, not just another case of the film using the same actors for multiple characters.
* One of the few relatively certain things about the [[MindScrew plot]] of ''Film/MulhollandDrive'' is that it includes some element of this. One interpretation is the whole movie is a sinister creeping inversion: it is a dream where the ''dream gradually wakes up'' and walks away, rendering the original dreamer fictional.
* Inverted in ''Film/RosemarysBaby''. The title character undergoes a series of increasingly bizarre dreams, culminating in her rape by a demon which, as she realizes partway through, isn't a dream at all.
* Open to interpretation in ''Film/{{Click}}''. Just as the main character is about to die, he wakes up at the Bed, Bath, and Beyond he laid down for a short while at the beginning. However, Morty and the magical remote turn out to be real. It could be that this was more of his imagination. Given the prevalence of time travel in this film, it could also be that Morty simply reversed time to the exact point at which he laid down in the bed.
* Tacked on at the end of 2002 Hong Kong flick ''Undiscovered Tomb''.
* ''Film/TheMatrix''. The entire world the film starts in is All Just A Dream, albeit an artificially constructed one induced by an empire of evil computers. Some have suggested that even Zion is just another level of the Matrix, satisfying many beyond the official interpretation as it explains the liberties taken in the third movie.
* ''Film/{{Labyrinth}}''. Invoked and then subverted: Sarah, after hours of weirdness, finds herself in a place that looks exactly like her room. She cries out in delight, jumps on the bed and wraps the pillow around her head... then looks up in wonder and realizes the whole thing was just a big dream! She goes to open the door to the hallway... and is greeted by a goblin, while the other side of the door is a junk heap at night-time.\\
Played straighter by the end, where you could interpret the entire thing as a dream, then subverted ''again'' when the creatures show up in her room and everyone has a dance party while Jareth watches in owl form outside the window.
* At the ending of ''Film/JacobsLadder'', we discover that the lead character is experiencing the entire events of the movie as a hallucination as he lies on a cot dying in a military action.
* Each sequence of ''Film/LivingInOblivion'' is revealed to be All Just A Dream, a dream which is referenced in the following sequence. In the final sequence is about trying to film a dream sequence important to the production, and lampshades tropes typical of filmed dream sequences.
* ''Lunatics: A Love Story'' uses a lot of this for humor. "''[[CrowningMomentOfFunny You're having a nervous meltdown!]]''"
* Subverted and then unsubverted in ''The 13th Floor''.
* Both the original and remade version of ''Invaders From Mars'' have the whole thing turn out to be a young boy's nightmare only to have the invasion [[OrWasItADream start all over again]] at the end. The first version in particular emphasizes this, with off-kilter sets and camera shots throughout.
* In the movie ''Next'', most of the second half of the film is actually the protagonist looking into a future, which he then changes.
* Creator/FritzLang's 1944 noir ''Film/TheWomanInTheWindow'', complete with [[ButYouWereThereAndYouAndYou recognizing the people from his dream after waking up]]. Many sources report that UsefulNotes/TheHaysCode compelled Lang to use this ending, but Lang insisted that it was his idea.
* The entirety of ''Film/TheWizardOfGore'' is implied to be a brief dream of Montag's as he's starting his routine.
* Taken to '''[[OverlyLongGag the]]''' extreme with ''Film/{{Inception}}''. The whole plot revolves around making sure they wake up from the layers of dreams at the right time. In Cobb's backstory we learn that his wife became convinced she needed to wake up from reality. And finally the ending and beginning both suggest that the whole movie was a dream. Maybe.
* A planned (but never filmed) AlternateEnding of ''Film/ScottPilgrimVsTheWorld'' removes the VideoGamePhysics and recasts Scott as an UnreliableNarrator, culminating in his being [[RealityEnsues convicted as a serial killer for seven counts of murder]], though this was very likely discarded due to the fact that it was deemed too unfriendly.
* ''Film/The5000FingersOfDrT'', with one or two hints that it wasn't.
* ''Theatre/IMarriedAnAngel''
* Happens three times in ''13 Seconds''. First, the main character is attacked by demons, and wakes up in bed. Later, a demon [[GroinAttack grabs his groin]] and drags him under the bed; he wakes up again. As for the third time, during the movie, he shoots up on heroin. The entire rest of the movie turns out to be a hallucination he experiences in the [[TitleDrop 13 seconds]] it takes him to die of an overdose.
* Everything but the last couple of minutes in ''Nightmare City'' is in the main character's dream, and the movie ends with the beginning of his dream playing out in real life, with an end card reading "The nightmare becomes reality..."
* At the end of the Italian Horror movie ''Shadow'', we learn that the main character has never left Iraq, and was under anesthesia as the camp doctor (the evil creature in the dream) and nurse (who is the girl he met in the dream) worked on him. He survives, but loses his legs and his left eye. The two hicks who the evil creature tortured and killed are revealed to be fellow wounded soldiers who died of their wounds.
* The first twenty minutes of the ''Film/HalloweenII2009'' ends up being nothing more than a nightmare that the main character was having.
* The last third of ''Film/RepoMen'' - in the last two minutes or so, it's revealed that Remy suffered brain damage from getting hit in the face by a hook, and Jake then had Remy hooked up to the M5 Neural Net to live the rest of his life in happiness - everything that happens between the hook to the face and the reveal is part of the happy illusion Remy is living because of the neural net.
* ''Film/RobotMonster'' -1953 - Ultimately the youngest member of the family, a boy, apparently wakes up after suffering a mild concussion, revealing that the bulk of the film had presumably been a dream.
* Subverted in ''Film/{{Audition}}''. Near the finale of the film, the protagonist wakes up next to Asami in bed and is immeasurably relieved that all of the horrific things that were happening were just a nightmare born of the fear of her leaving. Turns out that this was actually a hallucination born of the pain of having his foot cut off.
* ''Film/ThePirateMovie'' (1982) is a kooky adaptation of ''Theatre/ThePiratesOfPenzance'' in which the story plays out as the dream of a present-day heroine, which results in the plot and songs of the Gilbert and Sullivan original existing alongside pop culture-derived gags and light pop songs. When the heroine realizes she's dreaming, she's able to engineer a happy ending.
* ''Film/TheCompanyOfWolves'' addresses this trope from the very beginning. The lead character - the one who dreams up the storyline - is a modern-day pre-teen girl, and when she wakes up, she is attacked by wolves.
* ''[[Literature/{{Twilight}} The Twilight Saga: Breaking Dawn - Part 2]]'': The battle shown near the end of the movie was just a vision seen by Aro through Alice that would foretell his death if he tried to murder Renesmee anyway. It must be noted that this never happened in the original book.
* ''The Slayer'' -- The whole movie turns out to be [[DreamingOfThingsToCome a prophetic dream]] that main character had as a child.
* In ''Film/TheSmurfs2'', Smurfette turning into a Naughty turns out to be this.
* Parodied in ''Film/SexMission'', when at one point Albert dreams of the whole plot being a dream, and not even a normal one, but one shared with Maks during the hibernation.
* In ''Film/HellraiserInferno'' there is an extended sequence halfway through the film where Joseph takes a rest on his bed as his wife comforts him, only to be informed by the Engineer that he's going after [[spoiler:Joseph's parents]] and Joseph rushing to their rescue. Joseph fails to save them and his surroundings turn nightmarish, after which he wakes up with his wife beside him and the sequence starting all over again with a different outcome.
* In ''Film/TheWolfman2010'', Lawrence has quite a few hallucinations while recovering from his nasty little bite, as well as hallucinations in the asylum.
[[/folder]]

[[folder:Literature]]
* Many scholars interpret ''Literature/TheAeneid'', the [[NarrativePoem epic Latin poem]]/propaganda piece commissioned by Octavian to Creator/{{Virgil}}, as the earliest example of a story being "all just a dream". Halfway into the poem, Aeneas [[ToHellAndBack visits the underworld]] to be instructed by his dead father in the foundation of Rome, after which he is confronted with two possible gates to exit back up, "one said to be of horn, whereby the true shades pass with ease, the other all white ivory agleam without a flaw, and yet false dreams are sent through". His father then sends him up through the ''ivory gate''. This would imply that all of Aeneas' subsequent adventures leading up to and including the foundation of glorious Rome are all but a "false dream", contrary to Octavian's wish. Possibly Virgil's subtle way of GettingCrapPastTheRadar.
* One of the classic uses of All Just a Dream in children's literature is ''[[Literature/AliceInWonderland Alice's Adventures in Wonderland]]''. In its sequel ''Through the Looking Glass'' though, she is assured that ''she'' is just the Red King's dream.
* OlderThanFeudalism: The most famous anecdote by Chinese Daoist philosopher Creator/{{Zhuangzi}} has him relating how he dreamed that he was a butterfly, and upon waking was unsure whether or not he was a man who dreamed he was a butterfly, or a butterfly who dreamed it was a man. He lived around the 3rd century BC.
* Polish author Creator/StanislawLem:
** ''The Futurological Congress'' features its narrator accosted by powerful mood-altering drugs that cause powerful hallucinations while he sleeps (perhaps they could just be called dreams?). He awakens from hallucination within hallucination, sometimes by degrees and sometimes suddenly, with such frequency that less than halfway through the book it becomes virtually impossible to tell whether he is really awake (one of the major themes of the book).
** In ''Observation on the Spot'' Lem references ''The Futurological Congress'' and lampshades the trope. The protagonist tries to wake from the dream - explicitly mentioning his wakings up during the Congress. He fails, because his observation on the spot was not his dream.
** Also, in ''Literature/TalesOfPirxThePilot'', the first story features this. Pirx's first spaceflight was just a simulation, he didn't know that though.
* Towards the end, Creator/NeilGaiman's ''Literature/{{Coraline}}'' very briefly appears to pull this... however, it's almost instantly subverted; not only was it not just a dream, but Coraline's adventure isn't quite over, after all.
* In ''The Queen and I'' by Sue Townsend, the election of the British People's Republican Party and subsequent banishing of the Royal family to a council estate turns out to be an election night nightmare by the Queen.
* {{Subverted|Trope}} in the original ''ChroniclesOfThomasCovenant''; Covenant ''starts out'' by believing that everything happening to him is a dream, and is then made to doubt this over the course of the trilogy. The question is deliberately left unresolved, although the Creator's intervention to save Covenant's life at the end strongly implies that the Land was real, as do the passages from the points of view of Hile Troy and Lord Mhoram.\\
Unless it ''was'' all just a dream, and Covenant merely hallucinated the Creator offering to help save him. In that, his "miraculous recovery" in the hospital would simply have been because he had essentially regained his will to live (as established in his conversation with the Creator). This is even more implicit when you realize that Covenant is a writer (and thus, is a Creator himself), so both the Creator and the Despiser may simply be embodiments of his own personality. The Hile Troy and Mhoram [=POVs=] don't necessarily negate this, since Covenant never manages to prove that Troy was "real", and it's possible to passively dream things happening that the dreamer wouldn't necessarily be aware of. But as Covenant himself suggests, it doesn't matter whether it's a dream or not, because either way, it's ''important''. The later books tend to make a much better argument for everything being real, but the original trilogy does a very good job, even right up to the very end, of keeping the paradox.
* {{Subverted|Trope}} in ''Literature/MaximumRide''. A group of scientists unsuccessfully attempt to convince the protagonist that the events of the entire past three books were all a dream.
* In the short story ''An Occurrence at Owl Creek Bridge'' by Ambrose Bierce, the protagonist (a [[UsefulNotes/TheAmericanCivilWar Confederate]] sympathizer lured into a Union trap) makes a daring escape from his hanging when the rope breaks! He swims to safety, evades pursuit from Union soldiers, runs 30-odd miles to his home, finally embraces his beloved family -- only for him to suddenly die of a broken neck, where it's revealed that the whole escape was just a [[DyingDream hallucination]] between the moments of him being dropped and the noose snapping his neck.
* [[TheLongingOfShiinaRyo Metamonogatari]].
* Creator/OHenry's short story ''The Roads We Take'' is about a [[TheWildWest Wild West]] TrainJob gone awry: one robber murders his friend and accomplice, justifying that their only horse "cannot carry double". It turns out to have been a stockbroker's dream. He wakes up and promptly betrays a friend of his for financial gain, [[IronicEcho repeating]] the phrase "Bolivar cannot carry double".
* The sequel to ''Film/RosemarysBaby'', ''Son of Rosemary'', makes ''both'' books All Just a Dream.
* ''Literature/JacobTwoTwo Meets The Hooded Fang'' by Mordecai Richler.
* One of Creator/CharlesDickens's less well-known Christmas stories, ''The Chimes'' uses this. The main character, Toby Veck, discovers he's fallen from a bell tower to his death, and spends the next two chapters watching all kinds of disasters befall his loved ones because of their poverty. Just as his daughter is about to drown herself and her baby, and you think the only way to fix the situation is for it all to have been a dream, it turns out that it was all a dream. After a short happy scene, Dickens brings the mood down again by pointing out that even though he'd made his story turn out to be a dream, for many people the miserable parts were real life.
** Speaking of Dickens, this is also one interpretation of ''Literature/AChristmasCarol,'' though Scrooge doesn't think so.
* An in-story example occurs in one of the ''Henry Huggins'' books where Henry has to play the lead in the school Christmas program about a boy going to the North Pole to visit Santa. He hates the role- a six-year-old boy, the costume- footy pajamas, and the ending- where it turns out he dreamed the whole thing. Creator/BeverlyCleary didn't seem to like this trope, either.
* Creator/GKChesterton's ''TheManWhoWasThursday: A Nightmare''. You can't say he didn't warn you -- and he woke very oddly.
* Creator/MarkTwain's ''Literature/TheMysteriousStranger'' [[StrawNihilist plays with this]].
* Chris van Allsburg's ''Just a Dream'', obviously. Although whether or not the author intended the dreams to be actual premonitions of potential futures is debatable.
* In Creator/CSLewis' ''Literature/TheGreatDivorce'', the narrator meets with Creator/GeorgeMacDonald -- who [[TalkingInYourDreams solemnly warns him]] that it is All Just a Dream and he must make it clear when he tells the story in RealLife.
* In Creator/JulioCortazar's "La noche boca arriba", this trope is played with. The narrative switches between two characters, one of which is a boy in a hospital, and the other a man about to be sacrificed by Aztecs. The ending reveals that the boy's life is actually a dream of the man, who keeps falling unconscious.
* Happens in-story in ''[[LightNovel/HaruhiSuzumiya The Sigh of Haruhi Suzumiya]]''. They're making a movie, and events have unfolded that require the title character to in some way admit that the film is fictional. Koizumi suggests to end the movie with an All Just a Dream ending, thus forcing Haruhi to admit that the movie is impossible.
* Deliberately invoked in Creator/JohnVarley's ''Literature/SteelBeach'' and Justin Lieber's ''Beyond Rejection'' when both protagonists discover they've been subjected to artificially induced "All Just A Dream" scenarios for therapeutic purposes. Lieber's protagonist is grateful for the intervention but Varley's is not.
* {{Subverted|Trope}} in the ''Literature/{{Discworld}}'' story ''The Wee Free Men'':
-->''Tiffany sighed. "And then she woke up and it was all a dream."\\
It was the worst ending you could have to any story.''
* ''GodelEscherBach'' has a dialogue in which the protagonists win a raffle. The prize is a "Subjunc-TV", which has the ability to show them what would happen under various hypothetical circumstances. In the end, it turns out that they never actually won the raffle; the entire dialogue was itself a Subjunc-TV broadcast of what would have happened if they had.
* Chapter 39 of ''Literature/AtlantaNights'' reveals that the rest of the book was all a dream, and the main character is on death row. There are 41 chapters, and the last two [[AnachronicOrder follow the same plotline as]] [[PlotHole the first 38 chapters]].
* ''Literature/ThePilgrimsProgress'' by John Bunyan subverts this: The very first sentence is: "As I walk'd through the wilderness of this world, I lighted on a certain place, where was a Denn; And I laid me down in that place to sleep: And as I slept I dreamed a Dream." That this is All Just a Dream is reinforced throughout, to the very last sentence, which is: "So I awoke, and behold it was a dream." The book was written in 1675. Dream frames were a common medieval trope to explain that "I made this all up."
* In Creator/RobertEHoward's ''Literature/TheTowerOfTheElephant'', ConanTheBarbarian briefly wonders about this:
-->''He turned back uncertainly, to stare at the cryptic tower he had just left. Was he bewitched and enchanted? Had he dreamed all that had seemed to have passed? As he looked he saw the gleaming tower sway against the crimson dawn, its jewel-crusted rim sparkling in the growing light, and crash into shining shards.''
* In book four of ''[[Literature/{{Bunnicula}} Tales from the House of Bunnicula]]'', Howie attempts to end the story this way after he inadvertently writes the protagonists into a situation they can't get out of. However, Harold tells Howie that ending the story like that is a cop-out, and tells him to try again. So Howie lets Delilah write the final chapter, ending the story on a much happier note.
* Reversed in ''Literature/TheLatheOfHeaven''. George Orr has “effective” dreams, meaning, when he wakes up, something that was in his dream is now part of reality. His psychiatrist tries to use this ability to improve life on earth, but when he suggests that George dream of an end to international strife, George dreams of an alien invasion!
* In ''Literature/{{Metro 2033}}'', Artyom is put on trial to be hanged by the Fourth Reich but is saved by Hunter, when the latter ''massacres everyone in the station''. Aaand then Artyom wakes up only to find himself leaning against a door in one of the Fourth Reich's cells.
* ''Literature/AnElegyForTheStillLiving'' implies that this is the case without ever openly stating it, and the ending is left rather open ended on the subject.
* Justified in Creator/FrederikPohl's short story "The Hated", in which the protagonist plots to murder a former co-worker, but before he can, he's awakened by a psychiatrist from an induced dream. The protagonist and his co-workers were astronauts on a lengthy voyage during which they developed a profound, murderous hatred for each other. The psychiatrist was working with all of them to enable them to control their rage. It's made clear at the end that at least in the protagonist's case, it wasn't working.
* ''Literature/{{Goosebumps}}''
** This is played with in the TV ending to "Awesome Ants". The protagonist’s experience turns suspiciously nightmarish as the town is suddenly abandoned, there is a storm outside, and the ants are growing to enormous proportions. Just before he gets killed by one, he wakes up at home and all seems fine. Then he gradually remembers the reality of the situation: in the real world ants are actually mountain-sized, and keep humans secluded in the human equivalent of ant farms and force them to live on small pellets of blue food. In the book the ants just grew that big rather than always having been so.
** For a true MindScrew, count how many times this happens in "I Live In Your Basement".
%%* Creator/AlexanderPushkin's short story ''The Undertaker''.
* ''Literature/TheBoxOfDelights'' ends this way. The action supposedly takes place during Kay Harker's school holidays, but at the end he wakes up still on the train home from school.
* In ''1990 Degrees F'', Shelby falls into a trap-door and crawls through the wet cave looking for her trainer, getting angrier and angrier that her trainer brought her to the tunnel. Just as she is about to curse her out, something wet and slimy, which turns out to actually be her trainer's true form, wraps itself around her and starts choking her, then she wakes up in her classroom and finds out she dreamed the whole incident.
** However, she doesn't find out her trainer is actually an alien from Mercury until another dream she has when she's about to die from heat-stroke towards the end.
* ''Literature/AbrahamLincolnVampireHunter'': If main characters are randomly killed by vampires, expect to soon read "Abe awoke with a start."
* Flipped in ''Literature/GalaxyOfFear: City of the Dead''. Zak Arranda dreams that he's home in his room on Alderaan, and thinks for a moment that the last six months of traveling with his sister and distant uncle since Alderaan was destroyed were all a dream! But of course ''this'' dream [[BadDreams quickly becomes much worse]].
* In his essay "Literature/OnFairyStories," Creator/JRRTolkien says that the "All Just a Dream" device automatically rules out any story that uses it, even an otherwise good one, from serious consideration as a FairyTale, likening it to "a good picture in a disfiguring frame."
-->It is true that Dream is not unconnected with Faërie. [...] A real dream may indeed sometimes be a fairy-story of almost elvish ease and skill – while it is being dreamed. But if a waking writer tells you that his tale is only a thing imagined in his sleep, he cheats deliberately the primal desire at the heart of Faërie: [[WishFulfillment the realisation, independent of the conceiving mind, of imagined wonder.]]
* ''[[Literature/WhatWereTheyThinkingThe100DumbestEventsInTelevisionHistory What Were They Thinking? The 100 Dumbest Events in Television History]]'' lists the ''St. Elsewhere'' and ''Dallas'' examples (see below) at number 27 and 2, respectively.
* Sent up by RobertRankin in ''[[FarFetchedFiction Armageddon, The Musical]]''. A planet of aliens have been controlling Earth so they can watch us as a soap opera. [[ExecutiveMeddling Meddling executives]] decide that allowing WorldWarIII was a mistake and try to [[ContinuityReboot reboot]] the series by having Music/{{Elvis|Presley}} wake up and discover it was all a dream of what ''would'' happen if he joined the army instead of lending his voice to the anti-war movement. In minutes, the whole story turns into an AnachronismStew.
* Kalona from ''Literature/TheHouseOfNight'' has the ability to enter people's dreams and usually does this to seduce people.
* ''Werther Has Already Been Written''(1979) by famous Soviet writer Valentin Kataev, a novel about Cheka terror in Odessa in 1921, is an unusual example. The story is [[FramingDevice framed]] as an AuthorAvatar's dream and is written in PurpleProse, with heavy using of flashbacks and flashforwards. But the story itself in not dreamlike, it's completely realistic and evidently based on real events.
[[/folder]]

[[folder:Live-Action TV]]
* ''Series/TheXFiles'' is fond of doing this.
** In one episode, Mulder and Scully have [[LotusEaterMachine fungus-inspired hallucinations]].
** In "Triangle" Mulder wakes up in a hospital after apparently going back in time and [[AndYouWereThere meeting his friends and enemies]] as heroes or villains on a UsefulNotes/WorldWarII liner. Naturally no one believes him, but Mulder can't help smiling when he feels the bruise on his cheek where past-Scully gave him a MegatonPunch after he [[NowOrNeverKiss stole a kiss from her]].
* ''Series/{{Dallas}}'' infamously undid a season this way. The actor that played Bobby left the show, and they had [[DroppedABridgeOnHim Bobby hit by a car and died]]. After the ratings started to sink, and the actor came back, the writers [[AssPull retcon the entire season as a dream by Pam]], causing several {{continuity snarl}}s and messing up the SpinOff, ''KnotsLanding'', where it referenced Bobby's death in the story line. There's even more to this: Producer Leonard Katzman was kicked off the show at the same time Patrick Duffy left, only to be brought back at the cast's demand. Katzman hated a lot of stuff that was done to the show in his absence (primarily making the women much stronger characters), and so thought of a way to ensure they never happened.
* ''DayByDay'' has a variation: Ross after getting an F on a history paper, as a result from watching a ''Series/TheBradyBunch'' marathon, falls asleep while writing a new paper, and dreams he was Chuck Brady their long lost son. soon he gets advice from Mike and Carol repeat their dialog, this causes him to wake up, upon waking up he hears his parents come down, he finds that they are Carol and Mike Brady he wakes up again, only to find that his parents are back to normal, making this a case of a dream within a dream.
* There are quite a few in ''Series/MarriedWithChildren''.
** One season was made "just a dream", though justified as a case of RealLifeWritesThePlot. The entire season had been built around Katey Sagal's pregnancy. She had a late and unexpected miscarriage and couldn't deal with having a newborn baby on the set.
** Another One involves Al taking a job as a janitor for a Private Eye only to become one himself and solve a diamond case, getting a big fat check as reward. StatusQuoIsGod and it was just a dream of his (this one was the season-erasing resolution).
** Another has Al making a deal with the Devil (Creator/RobertEnglund) to lead a football team to the Super Bowl. He gets his wish but is killed in a tackle and taken to Hell where his family and friends also end up (as a result of improbable accidents after his death, oddly enough). After 300 years in Hell, Al can't take it anymore and challenges the Devil to a football match. The Devil picks some of the world's worst historical figures for his team. Al wins (even though given an offer to go back with beautiful women and loads of cash which, in a rare moment selflessness, he passes up). Al then wakes up back where he was before the Devil appeared and it appears to be a dream to him... least until he pulls out some Red Hots candy the Devil had given him.
* The last episode of ''Series/StElsewhere'' reveals that the entire series has taken place in the mind of an autistic child. If you accept that crossovers between shows imply that they occupy the same fictional universe, an argument can be made that no fewer than [[http://yujinishuge.files.wordpress.com/2011/02/crossoversscaled.jpg 282 shows]] were figments of Tommy Westphall's imagination, including both ''Series/BuffyTheVampireSlayer'' and ''Series/DoctorWho'', along with their spin-offs. The aforementioned picture seems to have a very low threshold for calling a show a cross-over, however; it includes minor {{shout out}}s as linkage. [[http://www.poobala.com/crossoverlist.html Another crossover database site]] gives a more conservative estimate, setting nearly a hundred shows within young Tommy's mind.
* This trope's application in the ''Series/{{Newhart}}'' episode "The Last Newhart" resulted in what is widely considered one of the best series [[GrandFinale finales]], ever. In the end it was revealed that the entire show was a nightmare of Robert Hartley, the star of ''Series/TheBobNewhartShow'', also played by Bob Newhart. Interestingly, ''Series/TheBobNewhartShow'' received a crossover from ''Series/StElsewhere'', which combined with the previous entry could make ''Series/{{Newhart}}'' a DreamWithinADream.
* ''Series/SaturdayNightLive'': A Wayne's World sketch starts with Wayne talking about a dream he had, then dissolves to the dream in typical Wayne's World fashion (wiggling their fingers and going "Do-da-loo! Do-da-loo!" during an actual dissolve). The dream is basically a Madonna music video in which Wayne makes out with Madonna while Garth dances in a skin-tight, black leotard. The sketch ends with them freaking out over an OrWasItADream moment as Garth is still wearing the leotard after the dream/flashback ends.
** The gag was recycled for a sketch where Wayne dreams that he's on ''Series/MelrosePlace'' and then wakes up wearing Heather Locklear's outfit.
* In season 4 of ''Series/{{Angel}}'', an episode takes places in Angel's head, in which the events of the dream actually solve all the problems of the season's arc, right down to a soapy heroic happy ending. When the episode reveals to the viewers that it was all "just a dream", it's when the dream climaxes with Angel experiencing a moment of perfect happiness, causing him to lose his soul, waking up as the evil Angelus.
* The second failed resurrection of ''Crossroads''[[note]]Buried, as it were, at the crossroads.[[/note]], a British SoapOpera, ended by revealing the entire series had been the dream of a supermarket worker. Whether the first resurrection was just a dream as well is up to viewer interpretation.
** The closing scenes show a number of characters who made their debut in the first resurrection also working in the supermarket... except the character having the dream didn't appear until the second resurrection. (Maybe the first resurrection was one of the other workers' dreams, explaining why [[AbortedArc none of the cliffhangers were resolved]]?) And just as you're getting your head around that, a customer at the supermarket, who looks like another character who's been around since the first resurrection, is identified as "Tracey from ''Crossroads''" by the staff. Um... huh?
* The season 1 finale of ''Series/{{Reno 911}}'' ended on a CliffHanger, which was revealed in the season 2 premiere to be a dream, in what turned out to be a [[DreamWithinADream dream sequence itself]] Dangle wakes up from the dream, to discover himself in bed with Kenny Rogers. This turns out to be a dream Garcia is having in the meeting room at the sheriff's station.
* ''Series/TheCosbyShow'' did a number of these, normally precipitated by Cliff's consumption of a large sandwich near bedtime.
* ''Series/{{Smallville}}'':
** The episode "Slumber" both uses and subverts this trope, as a girl with dream-walking powers can only contact Clark through dreams. Although occurrences in the episode were fantasy, the dreams do serve a purpose to the plot.
** Used as a bit of a fake-out in season 6's Lana/Lex wedding. The episode begins with a ridiculously melodramatic wedding/murder/suicide scene, which is immediately revealed to be a dream. The rest of the episode tells the story out of order chronologically, with many of the scenes using the same lurid gothic style, faking the viewers out into thinking these scenes are ''also'' just a dream; unfortunately, ''none'' of them are. Instead, when the episode is over and no one wakes up from the terrible dream, the viewer is left with the slow, horrible realization that the gothic awfulness ''actually happened''.
* An episode of ''Series/MacGyver'' in which the title character dreams of his [[IdenticalGrandson lookalike ancestor]] ends with an OrWasItADream moment when he woke to find he now possessed his ancestor's distinctive pocketknife.
* ''Series/HappyDays'' somehow managed to SpinOff ''Series/MorkAndMindy'' from an All Just a Dream episode. Though ThatWasNotADream as shown by Mork's presence at the end of the episode, where he told his contact on Ork that he tricked "the human (Richie Cunningham)" to ''think'' he had been dreaming. Mork also visited in a subsequent episode during the run of ''Mork and Mindy'' to tell Richie that he was living on Earth in "the future" (i.e. TheSeventies when ''Series/MorkAndMindy'' took place, and when both ''Happy Days'' and ''Mork and Mindy'' were made and first aired).
** The episode "They Call It Potsie Love" had Joanie--who had developed a crush on Potsie--falling asleep and dreaming she marries him.
* ''Series/TheDickVanDykeShow's'' classic ''Series/TheTwilightZone'' parody "It May Look Like a Walnut."
* British surreal comedy series ''Series/TheBrittasEmpire'' concluded with the revelation that the entirety of the programme, all 53 episodes, had been a dream. The title character had fallen asleep while on the train to the interview for the job that he'd had throughout the series. The other people in the dream (apart from his wife, who was the same in the dream and in real life) were actually people on the train with him, and he projected them into the dream.
* ''Franchise/StarTrek'' as a whole has the "All Just a Holodeck Simulation" version.
* ''Series/StarTrekDeepSpaceNine''
** Interestingly used when Chief O'Brien is arrested by aliens and serves out a 20-year prison sentence within a dream that lasts only hours. The rest of the episode shows him dealing with this experience and how it has changed him.
** "Far Beyond the Stars" and "Shadows and Symbols", where a science fiction writer in the 50's dreams about Deep Space Nine. It's also lampshaded in the dream when someone suggests making Benny's story turn out to be a dream to get around complaints about the hero being black. In fact, the producers toyed with the idea of making the entire series a figment of Benny Russel's imagination
** In "Inquisition", the investigator creates an elaborate holo-simulation that tries to trick Bashir into believing that he was a spy for the Dominion. Most of the episode occurs in the simulation
* ''Series/StarTrekTheNextGeneration''
** Similarly, in an episode, an alien artifact which turns out to be a monument to a long-dead race gives Picard the experience of living the life of one of its makers in less than an hour. In an unusual twist, Picard leaves the dream with at least one skill he didn't have before entering it -- that of [[CrowningMomentOfHeartwarming playing a recorder-like instrument]] his dream-self was fond of. Slightly different from most examples in that Picard starts off knowing that the experience isn't real, but it lasts so long for him that he forgets.\\
\\
Unlike most of the examples on this page, this is usually considered one of the series' best episodes. Quite probably because we were shown Picard lying on the floor of the bridge dreaming from the start of the episode while the crew struggles to wake him up.
** A slight variation of this happens to Commander Riker in the episode "Frame of Mind".
* ''Series/StarTrekVoyager'':
** Played with this trope a lot in "Barge of the Dead". B'Elanna Torres survives a shuttle accident, only to find it's all a dream and that she's actually on a barge taking dishonored souls to the Klingon afterlife.
-->'''B'Elanna:''' But I was on ''Voyager'' with my crew!\\
'''Klingon:''' That was the ''naj'' -- the dream before dying. When we can't accept that we've died, we create the illusion of life to hold on to.\\
'''B'Elanna:''' ''(seeing the helmsman, Kortar)'' He slaughtered my friends!\\
'''Klingon:''' No. He slaughtered the dream. He dragged you from the illusion of life. This is where you belong.
** After being rejected in favour of her mother, B'Elanna wakes up in ''Voyager'''s sickbay with the same hand injury she received on the Barge. She then has to convince her shipmates she didn't imagine the whole thing, and that she has to return to the Barge (i.e. [[FlatlinePlotline recreate her near-death experience]]) in order to save her mother.:
-->'''B'Elanna:''' Look at this -- The eleventh tome of Klavek. It's a story about Kahless returning from the dead ''still bearing a wound from the afterlife''. A warning that ''what he experienced wasn't a dream''. The same thing happened to me!
** In "Nemesis", Chakotay was being brainwashed to hate the Kadrin through a simulation that depicted them as monsters. Everything that happened from his viewpoint, until Tuvok found him, never did.
* The ''Series/StarTrekEnterprise'' episode "Vanishing Point" has Hoshi apparently fading out of existence due to a transporter malfunction before learning that the transporter has been hijacked by hostile aliens--and then she rematerializes on the ship. The whole thing was a hallucination caused by the actual (but non-fatal) transporter malfunction.
* ''Series/LifeOnMars2006'' makes use of this, both as (seemingly) the circumstances of the main character (in a coma, dreaming the entire thing), and side instances where Sam wakes up in bed after being harangued by the [[CreepyChild Evil Test Card Girl]]. In the end Sam's adventures in the past turn out to be just a dream. One Sam ''commits suicide'' to get back to... if you believe that interpretation of the ending instead of [[EpilepticTrees one of the dozens of others]].
** Something very similar occurs in ''AshesToAshes''.
** The finale of the [[Series/LifeOnMars2008 American version]] implies the entire series, ''including'' the 2008 sequences in the first episode, being the dream of an astronaut in hibernation on his way to Mars.
* ''Series/{{House}}'': There's nearly always a quick way to tell that House is dreaming. If he limps, then it's sad reality. If he doesn't, then it's a dream or a hallucination.
** In Season 1 there's a scene where House told Vogler, whose whole role was making House miserable, that he had Princesse and was going to die soon. The fact that Vogler calmly and gratefully accepted the news, even when House made a crack about jumbo-sized coffins, as well as the fact that House was walking without a limp, quickly revealed the scene to be a dream.
** An episode (the season two finale "No Reason") was "All Just A Hallucination", and the episode ends minutes after its beginning. Still, the fact that it was a hallucination meant that it served as an exploration of House's mental state (rather than an excuse to kick the audience in the teeth at the end), which may be why this episode is not derided in the way that so many All Just a Dream episodes are. Also, House discovering it was a hallucination was an important part of the plot and set up moments into the hallucination, so it was in accordance with the rules of fair play. Furthermore, House uses an idea from his hallucination in real life that shows its effects throughout the next few episodes.
** Similarly, the end of the season five finale "Both Sides Now" reveals that the sequence in the previous episode where Cuddy helped House detox and then ''has sex with him'' was also just a hallucination.
-->'''Hallucination Amber:''' So... this is the story you made up about who you are. It's a nice one.
-->'''Hallucination Kutner:''' Too bad it isn't true.
** Another episode has House trying to kill a mosquito, but accidentally knocks off the valve to a propane tank and lights the stove. Cue explosion, cut to House waking up.
* ''Series/TheSopranos'' has a lot of these as a way to get into Tony's head, although it was made apparent to the audience what they were.
* In the ''Series/BuffyTheVampireSlayer'' season 6 episode "[[Recap/BuffyTheVampireSlayerS6E17NormalAgain Normal Again]]," it is suggested that the entire series is a [[CuckooNest hallucination of the main character]], who is living in a mental institution and has power fantasies of saving the world with her imaginary friends. The episode's end leaves room for interpretation as to which existence (Buffy's life as a vampire slayer, or her life as a mental patient) is really All Just a Dream. [[WordOfGod Joss Whedon]] [[MindScrew has outright stated that either one is a definite possibility]].
* The first episode of ''Franchise/{{Terminator}}: Series/TheSarahConnorChronicles'' starts out this way. Just so you know. Also, in the second season episode "Some Must Watch, While Some Must Sleep", Sarah is taken captive and interrogated by a man she had killed in an earlier episode. It is then revealed that this was in fact a dream, and that Sarah was admitted to a sleep clinic, because of her insomnia. She keeps having this dream, while she suspects something bad is going on at the sleep clinic. Eventually, we find out the sleep clinic was in fact the dream, induced by the drugs given to her by the man who abducted her, for real - him having survived the earlier episode against the odds.
* In the ''Series/MontyPythonsFlyingCircus'' [[http://cycling.finial.com/stuff/mpcyclingtour.php "Cycling Tour" sketch]], a bicyclist (Mr. Pither) ends up in a Soviet prison cell about to be executed. He is suddenly woken up by his mother and says "So, it was all a dream!" His mother says "No dear, this is the dream, you're still in the cell." He then wakes up for real, still in the cell.
* Likewise at the end of ''Series/TheYoungOnes'' episode "Interesting" where Neil experiences something similar as he is about to be kicked in the head by skinheads.
* ''Series/TheTwilightZone''
** In TOS episode "[[Recap/TheTwilightZoneS4E108DeathShip Death Ship]]", an astronaut stranded on another planet dreams that he has returned to Earth and everything's all right. His commanding officer bodily enters his dream and drags him back to wakefulness. The KarmicTwistEnding? He and his commander are actually dead, and his dream was actually the afterlife he should have gone to.
** In the episode "Shadow Play", a man on Death Row tells everyone they are all figments of his dream based on people from his life, and that when he's killed, he'll dream the same dream again, with everyone in different roles. As it turns out, he's right.
** An even more sadistic episode -- "[[Recap/TheTwilightZoneS3E75TheMidnightSun The Midnight Sun]]" -- turns out to be just a dream in the end. However, reality does not turn out to be much better than the dream. The protagonist dreams about a world in which the Earth is burning up as it's falling into the sun, and wakes up in a world that's freezing to death as the Earth is falling away from the sun.
** The episode [[Recap/TheTwilightZoneS1E9PerchanceToDream "Perchance to Dream"]] cranks this one {{up to eleven}}; it's about a man visiting a psychiatrist about nightmares, afraid the next one will kill him because of his weak heart, ultimately jumping out the window, then the reveal at the end... the whole thing from the point where he lied down in the shrink's couch was actually a dream, the conversation never actually happened, his fear came true, the dream had killed him.
** Played with in "The King Nine Will Never Return", about a pilot who visits his wrecked plane, one he was supposed to be in command of but for some last minute reason wasn't, revealed to be just a dream and he was at a nursing home the whole time. [[OrWasItADream Only his boots were found to have sand in them.]]
* In ''Series/{{Blackadder}}'' (season 3, 2nd episode) Blackadder dreams that he overslept and Dr. Johnson is arriving, whose dictionary has been burned. Then, Dr. Johnson suddenly confesses that he never liked the dictionary anyways, then things get really surreal... and then he really wakes up. he has overslept, the book is still burned, and Dr. Johnson is arriving.
* In one episode of ''Series/{{Lost}}'', Locke causes Boone to hallucinate that his step-sister/lover is being mutilated and killed by ''smearing goop on his head''. Allegedly to teach Boone a lesson.
* ''Series/DoctorWho''
** Inverted in the 2008 episode "Silence in the Library". A little girl on what looks like present-day Earth dreams of a futuristic library in which several people (including the Doctor and Donna) are in danger. Her psychiatrist tells her confidentially (in a complete reversal of expectations) that her dream is real and that the people in danger need her help.
** On the other hand, the entirety of Season 23 is revealed in "The Ultimate Foe" to have been an inaccurate reconstruction of what really happened. Of particular note, it turns out that the death of the Doctor's companion Peri in "Mindwarp" never really happened and instead she is happily living with King Yrcanos (despite the fact that he seems to be violently insane).
** Also used in Series 5's "Amy's Choice". While it's obvious from the very beginning that at least one of the worlds is a dream, both turn out to be dreams and the last scene is the only one that actually happens. However, [[CharacterDevelopment Amy realising that she does, in fact, love Rory]] is NOT ResetButton-ed, so it's all okay.
** The 30th anniversary special/Eastenders crossover "Dimensions in Time" was revealed to be a nightmare of the Seventh Doctor in the expanded universe, although this was mostly done to explain the {{Canon Discontinuity}}.
** Similarly, ''A Fix with Sontarans'' is retconned as a nightmare the Doctor had--that [[HarsherInHindsight in retrospect]], Freud would have had a field day with.
* The ''Series/RedDwarf'' episode Back to Reality had the whole show as a computer game played by the main characters. This turned out to be a group hallucination.
* ''Series/WalkerTexasRanger'' had a dream episode, where Partner Trivette was revealed to have gotten killed at the beginning, and Walker died at the very end, but not before [[HeroicSacrifice foiling the villains' plans anyway]]. When Walker's wife wakes up at the end of the episode, you find out that it may [[OrWasItADream end up coming to pass anyway]].
* Not even Hispanic {{Soap Opera}}s escape from this trope. There has been at least two soapies who ended with the implication that all the chapters we've seen has been just a Dream: ''Los Amores de Anita Pe?'' and ''Pecados Ajenos''. However, the results were very different:
** In ''Los Amores...'', which was a comedic soap that swung between the AffectionateParody and the {{Deconstruction}}, the whole thing was played for laughs, with the ghost characters of the people who died during the story lampshading the TwistEnding and openly decrying it in a full rupture of the FourthWall. However, the series gives not only a whole chapter after the reveal to close the few loose plots and point out the parallelisms between the "dream story" and the "real life", but also gives a happy ending for the heroine and the story: maybe her life isn't as exciting as it was in her "dream", but she is now truly happy with her son and her beloved husband.
** In contrast, in ''Pecados Ajenos'' (who was ''non''-comedic and pretty gloomy for a traditional soap) not content with using this trope to reset the whole story, also used the reset to put the heroine in a worse condition than the one she began with. It also [[KarmaHoudini left unpunished some of the worst villains of the story]] (a big no-no in traditional Hispanic soaps), and leaves the unsavory feeling that all the grisly, tragic and creepy things that happened during the soap [[GroundhogDayLoop are going to happen in the same way]]. Naturally, none of the viewers were happy with this.
* Or US {{Soap Opera}}s. The soap ''SunsetBeach'' concluded with its two supercouples getting married in a double wedding, only to have the heroine wake up and have it revealed that the last two years (the duration of the soap) were a dream (complete with AndYouWereThere). . .only to have the trope played twice when she wakes up ''again'' to learn that ''this'' was a dream and that she and the hero are happily married rather than the turbulence of the past two years.
* Used rather drastically on ''Series/{{Seinfeld}}'' when, after Kramer persuades him to get an illegal cable hookup, Jerry dreams that he is graphically gunned down by the FBI. Then he wakes up and discovers the plane he's on is about to crash, which is real.
-->"What have you done to my little cable boy?!?"
* A ''Series/SaturdayNightLive'' Digital Short parodied this. [[EllenPage A woman]] has a frightening dream about a zombie, and then wakes up and sees it, which then turns out to be All Just a Dream for the ZOMBIE. This then happens numerous times, ending with a woman waking up from a horrible dream sleeping next to Dracula.
* Also done on ''Series/MADtv''. It begins with the children of an elderly couple shocked by their parents' dirty dancing and ends with Stephnie Weir waking up from a dream "about a skit that has no ending".
* In ''Series/HannahMontana'', Jackson and Lilly end up dating after Miley tries to sabotage it. At the very end, despite it being a fairly normal story line and not all that much changing, it still turns out to be a dream.
** An alternate ending to the show revealed that the entire show was all just a fantasy world of 11 year-old Music/MileyCyrus (played by a different actor)
* ''Series/StargateSG1''
** The episode "Absolute Power" uses a dream that lasts most of the episode to show Daniel Jackson why getting access to the sum total of Goa'uld memory and technology would be a bad idea.
** Another episode uses this to much greater effect with Teal'c switching between reality and a world that is obviously (to the viewer) a dream. The real, ascended Daniel Jackson appears to Teal'c in the dream world as a psychiatrist, and points him toward the solution. Both worlds are hallucinations brought on by Teal'c's mind in an attempt to help him survive a serious injury until rescue comes.
** There's also the episode ''Forever in a Day'', in which Amaunet (the Goa'uld controlling Daniel's wife, Sha're) attempts to kill Daniel with a Ribbon Device. But Sha're manages to send Daniel a message through it, resulting in him switching back-and-forth between realities; one in which Teal'c saved his life by killing her, the other where she's freed of Amaunet's control and living with Daniel on Earth, trying to convince him to return to Stargate Command (which he leaves in both message-realities). She tells him the importance of him finding the Harcesis (human child born of two Goa'uld-controlled human parents, containing the genetic memory of both) and where he can find him. The episode eventually ends with Teal'c saving Daniel's life by killing Sha're/Amaunet.
** In "The Other Guys", two of the behind-the-scenes scientists [[LowerDeckEpisode get mixed up in one of SG-1's adventures]], rescuing the team, discovering that [[UnwantedRescue their captivity was part of a plan]], having SG-1's plan go sour, and then rescuing them for real. They end up hailed as heroes, and one of them gets a kiss from Carter. Then the one who got kissed wakes up from his daydream.
* Subverted in the ''Regenesis'' episode "Unbottled", where after the episode's shocking turn of events, the scene skips to David waking up at home and talking about his "crazy nightmare" with Rachel, who in the dream was killed by the terrorists who had taken over their lab and forced them at gunpoint to help them make a biological weapon. But then she reminds him that it really did happen, and disappears, and the next shot shows that he was in bed alone.
* ''Series/{{UFO}}''. The episode "Ordeal" has a lengthy sequence where Colonel Foster is violently abducted by aliens and taken to their UFO which is later (after various ShootTheDog arguments between his superiors) shot down by SHADO. Foster is recovered inside an alien spacesuit and is nearly killed having it removed. The whole thing turns out to be a dream experienced when he passed out in a sauna after over-indulging at a party. A more imaginative use of this trope occurs in "Mindbender", when a [[GreenRocks crystal]] found at a UFO crash site causes Commander Straker to hallucinate that he is [[BreakingTheFourthWall an actor in a science-fiction TV series]].
* The Spanish comedy ''Los Serrano'' finished this way, with the main character waking up to discover the entire series has been all just a dream. Fans were not pleased.
** A critic saw it in a slightly different light: if all was just a dream, that means that the atrocious BoyBand that [[SpinOff spun off]] from the series never existed at all.
* A segment on ''Series/TheDailyShow'' featured Creator/SteveCarell's greatest fears (including Creator/StephenColbert [[HilariousInHindsight taking over the show]]), leading to him waking up in terror -- next to Jon Stewart.
* ''Series/TheWildWildWest'' episode "[[Recap/TheWildWildWestS2E12TheNightOfTheManEatingHouse The Night of the Man-Eating House]]". Near the beginning, the characters discover and approach the title house. After a series of terrifying events, at the end the characters wake up and discover that the horrific events in the house were All Just a Nightmare. In the last scene, they find themselves [[OrWasItADream approaching the house again]].
* The HalloweenEpisode of ''Series/DarkAngel'' started fairly normal, then became progressively more wacky until the end revealed it was All Just a Dream.
** In the season 1 finale, Max dreams that her and Logan finally get-it-on. But in the middle of it all, a crow caws and blood appears on Logan's hand. Max asks desperately what's happening, then it's revealed the young clone of her who shot at her earlier '''Didn't Miss''' and instead shot her in the heart, leading her to die, until Zack shoots his own brains out to donate a heart for her
* ''Series/{{Bones}}''. The Season 4 finale seemed to take place in an alternate universe where everyone worked in a nightclub called "The Lab" and Booth and Bones were married. Then, at the end of the episode, it turns out that it was just a dream Booth was having while he was in a coma. And this was after weeks of promotions that they were actually going to ''have sex''. "We promise this time it's for real, not a dream sequence or anything." Right...
* In the ABC Afterschool Special ''[[http://www.imdb.com/title/tt0243434/ My Mother was Never a Kid]]'', Victoria Martin gets into an argument with her mother, and runs away from home. While she is on the subway train, she hits her head and seemingly travels back in time to 1944, while she was there, she learns that she and her mother are very much alike in many ways, while still in the dream state she hits her head again, and wakes up back in the present with the relationship with her mother repaired. Considering Victoria [[FishOutOfTemporalWater clearly had no knowledge of the 1940s]], this raises the question of how she could have dreamed up the period so accurately.
** The special is adapted by Francine Pascal from her own Young Adult novel, 'Hanging Out With CiCi.
* This happened in the final episode of ''Series/IDreamOfJeannie''. Dr. Bellows (finally!) finds out the truth about Jeannie, and then her bottle gets broken and Major Nelson resigns from NASA. Luckily, it's all a dream.
* ''Series/{{Friends}}''
** In-universe example: Phoebe gets pissed off at one of her friends for something that is eventually revealed to have happened in her dream.
** There's a sequence of Rachel asking Joey to kiss her, which turns out to be just a dream (to the surprise [and in some cases relief] of both the character and the audience). Curiously, that marked the beginning of her crush on him, which would be a key plot in the late 9th and early 10th seasons.
* ''Series/{{Everwood}}'''s first season ends with a cliffhanger: Andy operates on Colin, and the very last scene is him entering the waiting room and everybody standing up to learn if the surgery was successful or not. Season two begins with everybody having fun at the pool (including Colin), giving the impression things had been fine. Suddenly, we realise it was only Amy's day-dreaming during Colin's funeral.
* A similar case happened with ''Series/GilmoreGirls'': Luke and Lorelai had a lot of UST but nothing had happened between them during the first years of the show. One season (can't remember which one right now) begins with them already in a relationship and expecting a child; then she wakes up. Throughout the season, nothing happens between them, until at the very end when he's packing to go on a trip with his girlfriend and Lorelai comes in and asks him not to go. Then he wakes up.
* ''Series/{{Frasier}}''.
** Played twice in ''one'' episode. The first one has Frasier return to his radio show after an illness where Niles filled in for him. The dream ends when he's killed by an exploding control panel. The second one has him trying to take over the show while dazed on cold medication and making a fool of himself. After he wakes up, Martin and Daphne comfort him by invoking the trope. On their way out, they subvert the trope when Martin whispers to Daphne "When are we going to tell him it actually happened?"
** When Frasier meets a supermodel-zoologist on an airplane, he comments that "This is usually the part where I wake up." Cut to Frasier opening his eyes - [[SubvertedTrope and the camera panning out for a]] BedmateReveal.
* ''Series/{{Roseanne}}'' essentially ended the series with a version of this. Specifically, the last season was all a book written by Roseanne, as revealed in the epilogue of the last episode. Everything that happened in the book actually occurred, the only difference being Dan died of a heart attack instead of winning the lottery in the season premiere.
* ''Series/{{Battlestar Galactica|Reimagined}}''. At the beginning of "Collaborators" Adama, Tigh and Roslin are telling Dr. Baltar that they forgive his [[TheQuisling actions on New Caprica]]. It's only when Roslin adds that she finds him desirable that a suddenly terrified Baltar realises he's still in deep s** t. Sure enough, he then wakes up on a Cylon baseship.
* At the end of the fourth season of ''Series/{{Oz}}'', Tobias Beecher is up for parole. His lawyer enters the room and tells Beecher the Parole Board have approved his release. Everyone cheers as he returns to Em City, and a last minute assassination attempt by the Aryans is barely averted. Beecher is then shown walking out into the sunshine (showing the exterior of Oswald Prison for the first time) then playing with his daughter and new girlfriend in the park. Then he wakes up in his cell, and we flashback to his lawyer telling him that the Parole Board did ''not'' approve his release.
* One episode of the Charlie Drake BritCom ''The Worker'' has the title character experiencing an increasingly surreal series of events which culminate in his arrival at a TV studio, where it turns out that he's the leading actor in a TV SitCom called ''The Worker''... Drake liked this plot so much he reused it in a later episode. A more conventional use of the trope occurs when the Worker gets hit on the head by a boomerang and has a surreal dream about Aborigines (possibly inspired by Drake's earlier comic song "My Boomerang Won't Come Back". Except this time it did).
* One episode of ''Series/SabrinaTheTeenageWitch'' has this ending, negating the revocation of her witch's license. A flying banana, witnessed in an earlier dream sequence, tipped her off.
* Most events of the ''Series/ChinaBeach'' season 3 finale episode "Strange Brew" may have been a shared dream (after [[ShellShockedVeteran Colleen McMurphy]] and [[HookerWithAHeartOfGold KC Koloski]] fall asleep on the helipad), a dream within a dream (as Colleen wakes up on the helipad at the end... only to then seem to wake up AGAIN in her bunk) or just a long, strange trip, since much of the show WAS set in TheSixties.
* In an episode of ''Series/TheFortyFourHundred'', main character Tom dreams of a world where the 4400 abductions never happened. As it turns out at the end, the "dream" was actually a power of one of the 4400, whose alternate reality powers allowed him to have an eight year relationship with her in an extremely short time, allowing them to know everything about each other despite only meeting once.
* ''Series/FreddysNightmares'' overused this to the point of inverting it. The trope was so ridiculously commonplace that [[TwistEnding the real twist]] was when an episode ''didn't'' turn out to be just some random character's dream/hallucination/daydream/DyingDream.
* Several ''Series/RoundTheTwist'' episodes ended this way, as a result of being adapted into a continuing series from standalone stories. A particularly odd example is "Santa Claws," which not only has Pete falling asleep in the first scene, thus establishing this right away, but features a FramingDevice within the dream - Pete telling the story of how his mouth was shrunk.
* Spoofed in the final episode of ''Series/AceOfCakes'' after building a giant cake replica of the BTTF Delorean the final scene has Duff noticing the lights in the flux capacitor are on the fritz so he opens it up and messes with the wires, next scene he wakes up at his job at a factory, turns to Geoff and tells him about the weird dream he had 'where you and I worked at a cake shop making all sorts of weird cakes".
* In ''Series/{{Dollhouse}}'', the events in the Attic. That does ''not'' make it any better. You'll forever be trapped in an endless loop of your worst fear, unlikely to ever wake up. All the while the Rossum Corporation is using your mind as a giant computer for their own ends. Even worse; one of the co-founders of Rossum dreams of an oncoming apocalypse, and he knows it almost 100% certain to become reality.
* "For Whom The Bell Trolls" in Season 1 of ''Series/MightyMorphinPowerRangers''. It's left ambiguous as to whether "The Wild Wipeout" in ''Series/PowerRangersNinjaStorm'' was this or not.
* ''Series/GrowingPains'' had two episodes featuring this. In "This is Your Life" (season 3, episode 10), Ben is afraid to get a tonsillectomy. So, he sneaks out after getting anesthesia, only to find that he's been replaced, since he didn't get the procedure done. Luckily, this was an anesthesia induced dream. In "Meet the Seavers" (season 6, episode 21), Ben gets in trouble, and wishes that he lived in a TV show, because then he wouldn't be in trouble. He wakes up the next morning to find that he is Jeremy Miller on a show called ''Meet the Seavers''. This is a nightmare for him, as his family isn't a family anymore, and his house isn't his home. He wakes up to find that it was all just a dream.
* The ''entire premise'' of ''[[{{Toku}} Choukou Senshi Changerion]]'' is this trope, which sparked a number of angry letters to Toei!
* The ''Series/BoyMeetsWorld'' episode where the characters get trapped in a slasher movie scenario is actually a dream Shawn has while sleeping through detention.
* The last episode, "Home", of ''Series/TheLegendOfDickAndDom'' starts this way- the heroes return home in triumph from their quest, to acclaim and cheering crowds... and then it all turns a bit odd... and then they wake up, to find the BigBad has stolen the MacGuffin and put them to sleep (and apparently given them a communal dream) to delay their pursuit.
* ''Series/{{Awake}}'' mixes this with OrWasItADream, and [[AlternateReality dual realities]] as its main premise.
* The penultimate episode of ''Series/WithoutATrace'''s third season does this, as Jack Malone is trying to deal with his demons.
* ''Series/KamenRiderRyuki'''s Hyper Battle Video ends with this. For good reason too, since the Kamen Riders [[OOCIsSeriousBusiness were acting like a Sentai team]] and Ryuki wound up crossing over with Series/KamenRiderAgito to fight an EvilTwin. With those outlandish concepts, how could it ''not'' be a dream?
* Zig-zagged in ''Series/HikoninSentaiAkibaranger''. First, we find out that the Ranger's battles were delusions, then the imaginary villains appear in the real world (the heroes also gain the ability to transform in the real world). The clincher? Nobuo Akagi (Akiba Red) realizes that their world is a [[NoticingTheFourthWall TV show]], which is [[ExecutiveMeddling being altered by the Toei production staff!]]
* ''Series/ThePretender'' had one where Broots and Miss Parker are on a stakeout. At first, they wake up to find themselves in bed with each other, having apparently had sex. Later in the episode, Broots manages to capture Jarod and plans to have him watch while he has sex with Parker again. Parker then asks how he feels about a threesome ... with Mr. Reigns. It's then revealed that Broots dozed off and the whole thing was a dream.
* In a fake clip-show episode of ''Series/{{Community}}'', the group takes Abed to a psychiatrist who eventually reveals that the Community College they were recently expelled from was actually a shared delusion they all had in an insane asylum and the fact that they think its real means they're all relapsing. There were even clips of them in the asylum playing out scenes from the show. It doesn't take long for them to realize he's lying, and when cornered he admits to being an actor hired by Chang to keep them from trying to go back to the college.
** Played again in the fourth season finale when Abed reveals to Jeff that the battle with their darkest timeline counterparts took place entirely within his imagination.
* Much of the ''Series/{{Scrubs}}'' episode "My Occurrence" is revealed to be one of JD's extended daydreams towards the end, with the shift occurring the moment he walked in to tell Dr. Cox and Ben the test results. JD's mind was playing tricks on him because he didn't want to face having to tell Dr. Cox's friend that he had leukemia.
* The ''Series/TheGoldenGirls'' episode "Mrs. George Devereaux", wherein Blanche's husband George comes BackFromTheDead, confesses that he faked his death to escape being framed for embezzling from his company and begs Blanche for another chance, and Dorothy is wooed by [[Series/TheCarolBurnettShow Lyle Waggoner]] and Music/SonnyBono. Blanche [[RecurringDreams apparently has this same dream, or variations on it, periodically]], mentioning that every time it's happened, she always woke up before she could hug him.
* The alternate ending to ''Series/BreakingBad'' (as seen on DVD) played this completely for laughs. In it, Walter White gets shot as he did in the finale. However, he wakes up from a dying dream to reappear as Hal from ''Series/MalcolmInTheMiddle'', the show that Bryan Cranston appeared on before he joined Breaking Bad. This is very similar to the Newhart finale above.
* Used in an episode of ''Series/SirArthurConanDoylesTheLostWorld'' to great effect: [[spoiler: Malone]] undertakes a storyteller ritual of the Zanga, and ends up trapped in a dreamworld of his creation.
* Most episodes of ''{{Medium}}'' begin this way. Annoyingly, a few end this way as well.
* In the ''Series/{{Supernatural}}'' episode [[Recap/SupernaturalS02E20WhatIsAndWhatShouldNeverBe "What Is And What Should Never Be" (S02, Ep20)]], Dean has his deepest wish granted by a djinn, but it turns out to be a dream created by the djinn who is feeding off his blood.
* ''Series/{{Matlock}}'' had "[[ExactlyWhatItSaysOnTheTin Matlock's Bad, Bad, Bad Dream]]", in which the title character dreams of defending a '30s era club owner against charges of the murder of a club musician.
[[/folder]]

[[folder:Music]]
* Aaron Carter's upbeat song "That's How I Beat Shaq" relates the singer's adventures as he beats Shaquille O'Neal in a one-on-one basketball match, and ends with him waking up in bed. ("But if it was a dream, and it wasn't real... [[OrWasItADream how'd I get a jersey with the name O'Neal?]]")
** Music/ThePresidentsOfTheUnitedStatesOfAmerica have a similar song, "Basketball Dream", which appears as a HiddenTrack on the album II. It features Chris Balleau's son talking about a dream he had where he met Magic Johnson.
* [[http://www.mesozoicmind.com/ Mesozoic Mind, by the Charmers.]]
-->''Last night I had a crazy dream, I fell out of my bed! I missed the floor entirely, I fell through time instead!''
* Music/BritneySpears uses this in the videos for "Baby One More Time" and "Born To Make You Happy."
* Josh Turner, "Loretta Lynn's Lincoln" begins with the singer buying Loretta Lynn's Lincoln, ends with the singer being woken up from a nap in his pickup truck.
-->''I heard a tappin' on the window as I woke up''
* Music/{{REM}} , "Losing My Religion":
-->''I thought that I heard you laughing\\
I thought that I heard you sing\\
I think I thought I saw you try\\
But that was just a dream\\
That was just a dream''
* Porter Wagoner/Tom Jones's song "Green Green Grass of Home" has the subject of the song seemingly returning home after being away for a long time, enjoying his return, only to wake up in prison awaiting his execution, only to return home dead and buried there.
* The Billie Holiday version, and most subsequent English-language versions, of "[[DrivenToSuicide Gloomy]] [[BrownNote Sunday]]".
* Music/{{Metallica}}: "Enter Sandman" and "Ride the Lightning".
* "One More Red Nightmare" by Music/KingCrimson, where a guy dreams he's on a plane that's about to crash. He wakes up to find that's he's on a road trip on a Greyhound Bus.
* All of the video ''Music/MichaelJackson's Music/{{Thriller}}'' is this, or a subversion?
* Weird Al Yankovic's "Eat It" video, a parody of Michael Jackson's song/video "Beat It", ends with Al waking up with a bellyache and popping a couple of Alka-Seltzer.
* The video to The Music/{{Scorpions}} song "No One Like You".
* The music video for Gorillaz's "Dare" is a DreamWithinADream.
* Converge's music video for "Eagles Become Vultures" probably applies, though it's more of a waking fantasy than a dream.
* The video for Music/ThreeDaysGrace's "Animal I Have Become".
* The music video for Music/{{Evanescence}}'s "Bring Me To Life" suggests this -- the main action is interspersed with shots of Amy asleep and apparently dreaming, and the video ends with her asleep.
* The music video for Katy Perry's "I Kissed a Girl" ends with her on the bed next to someone whom we are to assume is her boyfriend.
** The same thing happens in "Hot & Cold", though that was a daydream.
* Airbourne's "Blonde, Bad and Beautiful" turns out to be this, in a video that was [[SexDrugsAndRockAndRoll filled with alcohol, stripping and a bit of pole-dancing]].
* The Music/BarenakedLadies' video for "Shoebox" is a dream of the girl who sneaks out on her date.
* Music/{{Dokken}}'s video for "[[http://www.youtube.com/watch?v=Ee2YFJKYF8Y Dream Warriors]]" winds up being a nightmare that [[Franchise/ANightmareOnElmStreet Freddy Krueger]] is having.
* The video for Live's "Run To The Water" turns out to be Ed Kowalczyk's dream.
* The video for Music/MileyCyrus' "Start All Over" is established as being a dream in the very beginning; it starts with her going to sleep and waking up in the dream world, and ends with her going to sleep in the dream world and waking up in the real world. [[OrWasItADream Then pictures she took while in the dream world start coming out of the printer.]]
* The video for Music/{{Maroon5}}'s "Makes Me Wonder" features this. With gratuitous {{fanservice}}.
* In her song "[[http://www.youtube.com/watch?v=0dfZ9BXaNyE Moon Trance]]", Music/LindseyStirling shortcuts through a CreepyCemetery with her friends. She encounters [[TheDeadCanDance dancing zombies]] and performs with them, but when they vanish at the end her friends have noticed nothing and it's clear it wasn't real, at least in the normal sense of the word.
* The Video for Teenage Dirtbag by Wheatus turns out to be a dream when the prom discoball falls on the singer and his love interest.
* The video for "California Love" by TupacShakur has this revelation as well.
* The video for Creator/KatyPerry's "Roar." The video starts with a plane crash before Katy's boyfriend is killed by a tiger and Katy becomes a badass JunglePrincess. At the end, we see Katy waking up next to an airplane window only to find out that the events of the video [[OrWasItADream really did happen]] and the plane had been made into a part of her shelter.
* The video for Chromeo's "When The Night Falls" has this revelation.
* CelineDion's first single, ''Ce ne'tait qu'un reve'', actually translates into this (Nothing but a dream).
* The video for BillyJoel's ''Sometimes a Fantasy''.
[[/folder]]

[[folder:Myths & Religion]]
* Certain branches of Hindu philosophy hold that because truth is unchanging, and the world is constantly changing, then the world is not real. Hence, RealLife is just a sort of dream state.
[[/folder]]

[[folder:Newspaper Comics]]
* [[http://www.garfield.com/comics/vault.html?yr=1999&addr=990513 Jon got a date]] and asked ''ComicStrip/{{Garfield}}'' to pinch him to be sure it wasn't a dream. It was.
* ''[[ComicStrip/LittleNemo Little Nemo in Slumberland]]'' ends every strip with Nemo waking up in bed. There were continuous storylines despite this. And when Nemo gets into trouble it does not feel as safe as a dream. No no no.
* ''Drabble'' pulled this twice, then subverted it ''hilariously''. The first time, Ralph dreams that his job as a mall cop is more like Franchise/{{Batman}}. The second time, Norman goes to a piercing salon with Wendy and ends up with multiple ear, nose, and other rings. The third time, Norman and Wendy run off to Vegas and get married on a dare. Norman is about to invoke this trope when the next panel reveals the cartoonist has already used up his chances to use it. The plot gets resolved another way.
* From ''ComicStrip/BloomCounty'', after a long-awaited wedding, Opus is knocked out when his nose collided with Lola's when they kiss. While unconscious, Opus dreams about Lola leaving him twenty years later with twenty-three tube-grown kids.
** At another point, Opus ends up wandering lost and semi-delirious in the desert. Suddenly, he's back home in Bloom County. He announces how happy he is it was all just a dream. Milo then says "No. ''This'' is the dream. You're still in the desert." And sure enough...
* A two-week storyline in ''ComicStrip/FoxTrot'', parodying ''Literature/TheMetamorphosis'', has Jason waking up one morning to find he's turned into a miniature version of his sister, Paige. Midway through the story, he {{lampshade|Hanging}}s this trope by saying he's figured out that he's dreaming, because he thinks that if this were real, [[Series/TheXFiles Mulder and Scully]] would've come to investigate. (Dream-Peter then points out that Mulder and Scully [[ThisIsReality are TV characters]] -- and therefore [[ComicallyMissingThePoint only investigate incidents appropriate for primetime shows]]. Turning into a teenage girl is too horrific.)
[[/folder]]

[[folder:Puppet Shows]]
* ''Series/CaptainScarletAndTheMysterons'' has an episode where The Mysterons actually come to Cloudbase to attack it, leading to Captain Scarlet's death and the destruction of Cloudbase. We then find out this was all a dream one of the Angels was having after she'd been shot down over the desert earlier in the episode. When repackaged in a CompilationMovie for the American market, the episode ended up with the ResetButton treatment.
* Gerry Anderson is all over this one (he was once quoted as saying "I wish somebody would make a film of my dreams"). There's one episode of ''Four Feather Falls'', one of ''Series/{{Supercar}}'', ''three'' of ''Series/{{Stingray 1964}}'', two of ''Series/{{Joe 90}}'', one of ''Series/{{Terrahawks}}'', two of ''Series/{{UFO}}'' as noted under Live-Action TV, and one of ''Series/{{Space 1999}}'' where the events of the episode turn out to be dreams, hallucinations or implanted visions.
* The ''Series/{{Thunderbirds}}'' episode "Security Hazard" manages to invert this by having International Rescue convince a boy that his real-life trip to Tracy Island has only been a dream.
[[/folder]]

[[folder:Radio]]
* There's an episode of ''Radio/AdventuresInOdyssey'' in which one of the children characters goes on an adventure in the Imagination Station (a virtual reality machine) that seems to be the same story over and over again, just set in different genres. At the end of the episode it's revealed the character is actually in a coma, reliving the events that put him in a coma, with the "bad guy" being Death coming for him and the friendly helper in his dream actually being a guardian angel trying to prevent an early death for him.
** Lampshaded in the episode "Push the Red Button" of ''Radio/AdventuresInOdyssey.'' After a series of increasingly improbable events...
--->'''Wooton''': And ''that'' was my dream!\\
'''Connie''': Really? You dreamt all that?\\
'''Wooton''': I sure did! Then I dreamt that it was all a dream and that we were talking about it ''like we are now!'' Isn't that weird?\\
'''Penny''': What's weird is to use such an obvious cliché to end a story.
[[/folder]]

[[folder:Stand-Up Comedy]]
* Comedian Emo Phillips inverts this trope when he talks about a dream he had. He describes a long series of really bizarre, Emo-Phillipian events that ends with him getting knocked unconscious. "And that's when I had my dream...."
[[/folder]]

[[folder:TabletopGames]]
* The "Forced Dream" spell from DungeonsAndDragons retroactively turns unsatisfactory events into AllJustADream.
** Fans have adapted it to create a [[http://www.giantitp.com/forums/showpost.php?p=8142448&postcount=2 save point system.]]
[[/folder]]

[[folder:Trading Card Games]]
* ''Hecatomb'' had a literal "It Was Only A Dream" card which can eliminate practically any card your opponent has out, essentially making them have never happened.
[[/folder]]

[[folder:Theater]]
* Played with in ''Theatre/AngelsInAmerica'', with regards to Prior's visions and Harper's hallucinations. The work as a whole, for what it's worth, is ''not''.
* In Theatre/{{Nerds}}, Steve Jobs hallucinates Oracle dancing with him and teaching him to 'Think Different' after he is infected with the Microsoft virus.
* The famous ballet ''Theatre/TheNutcracker'' usually ends with the curtain closing on Clara awakening in her home with the eponymous Nutcracker in her arms, and realizing that all of her adventures were a dream. Some productions stick a little closer to the source material and subvert this trope instead when the Prince turns out to be Drosselmeyer's nephew, whose father had orchestrated the entire series of events in order to break the curse on him.
* Toyed with in the ''Red Shift: Interplanetry Do-Gooder'' radioplay episode "Havoc Over Holowood" (available [[http://www.huboftheuniverseproductions.com/rec_rshoh.html here]]), where the entire episode turns out to have been a story Lumpy wrote about his friends and was reading to them.
* Done well in Erich Wolfgang Korngold's opera ''[[http://www.korngold-society.org/synopsis2.html Die tote Stadt]]'' ("''The Dead City''"). At the finale, it is revealed that much of the story is the dream of the protagonist Paul. However, this experience allows Paul to realize how destructive his obsession over his dead wife can be, thus compelling him to let go of his past, leaving the eponymous "Dead City" and starting anew.
* In ''Theatre/AvenueQ'', Rod overhears Nicky talking in his sleep, but at the end of the song "Fantasies come true" we find out that ''Rod'' was talking in his sleep.
* Shakespeare played with this. Most of the main characters in ''Theatre/AMidsummerNightsDream'' believe this to be the case (or they just decide to pretend it is). Then, in the final lines, Puck advises the ''audience'' to do the same if they disliked the play.
-->''If we shadows have offended,\\
Think but this, and all is mended,\\
That you have but slumber'd here\\
While these visions did appear.\\
And this weak and idle theme,\\
No more yielding but a dream.
* Alan Ayckbourn's 1985 play ''Woman in Mind''. The entire play. From start to finish. Really.
[[/folder]]

[[folder:Video Games]]
* The entire Elder Scrolls universe is actually a dream of a man, known as the 'Godhead'. Vivec, and others who have achieved CHIM (it's a confusing sort of epiphany where you can defy time and physics, and you understand your full existence), are aware that their world is just a dream. A justified example of Breaking the Forth Wall.
* This is the entire premises for the ''VideoGame/{{NiGHTS into Dreams}}'' series.
* ''Franchise/TheLegendOfZelda'':
** In ''VideoGame/TheLegendOfZeldaLinksAwakening'', the whole game is a dream of the Wind Fish. In this case, it is actually learned about three-quarters of the way through the game, rather than right at the end, and the bosses of the last few dungeons constantly remind the player of it. This adds more emotion, as Link knows that the island and its inhabitants will disappear once the Wind Fish wakes up. And it gets REALLY weird if the player beats the game without ever dying; if that's pulled off, after the credits Marin is seen in the form of a seagull, reflecting a wish she had told Link about earlier. WordOfGod confirmed that the events of the game DID actually happen. The events were a dream, but the real world and the dream world were colliding at the time. Therefore, the events of the game erase themselves once Link saves the day and the events become a dream but said events but have happened otherwise existence would have collapsed. So in other words, this is a rare example in which the events were a dream, yet the dream itself ''was'' real.
** ''VideoGame/TheLegendOfZeldaPhantomHourglass'' '''looks''' like it pulls this in the ending cutscene, only to have Link pull out one of the artifacts he found, and then see one of the characters he met. Judging from the dialogue near the end of the game, as well as ''VideoGame/TheLegendOfZeldaSpiritTracks'' featuring descendants of characters that appear in the predecessor, it's more likely an alternate universe.
* ''VideoGame/IsleOfTheWinds'' isn't entirely a dream, but the ruined Town Island and Windmillis.
* ''Franchise/SuperMarioBros'':
** In ''VideoGame/SuperMarioBros2'', upon completing the game, the characters celebrate, and then we see that Mario has been dreaming the entire game. Seems hokey today, but at the time (1988) having ANY sort of twist ending in a game was pretty revolutionary. Most of the enemies themselves and other elements do exist in the ''Mario'' universe, though, indicating that the dream is based on what the titular character has seen through his life. Wart was most likely an actual creation from Mario's imagination, though.
** ''VideoGame/MarioAndLuigiDreamTeam'' begins with the Mario Bros., Peach, Toadsworth and the other Toads taking a Zeepelin to Pi'illo Island when they are suddenly attacked by Antasma. Upon being defeated by Mario, Antasma breaks the vessel and causes it to crash into the island. The scene cuts to Luigi having a CatapultNightmare in a perfectly intact Zeepelin that has made a regular landing at Pi'illo Blimport.
* The ending of ''The Magical Quest'' reveals that MickeyMouse has been dreaming the entire adventure all along. Oddly enough one of the bosses in the sequel is a painting of Emperor Pete, the final boss from the first game, with music and all.
* Taken very, very seriously and sadly in ''VideoGame/FinalFantasyX'', where Tidus, his father Jecht and their home Zanarkand are all the dream of a place that Spira, the country the game is set in, destroyed millennia ago. More interestingly, the dream is being dreamed by dead people. Also (according to FFX-2 which retcons some things) it turns out that by the end of the game, Jecht and Tidus's actions have made them ''real''.
* The SNES game ''Porky Pig's Haunted Holiday'' centers around WesternAnimation/PorkyPig having nightmares, and you having to guide him out of them.
* ''VideoGame/TwistedMetal: Black'' seems like an AlternateContinuity to the main ''Twisted Metal'' series. In fact, various in-game hints reveal that the whole game occurs inside [[MonsterClown Sweet Tooth]]'s head.
** Roadkill's ending in ''Twisted Metal: Head On'' adds more MindScrew. It's suggested that the regular ''VideoGame/TwistedMetal'' continuity takes place inside the head of Sweet Tooth's alternate personality, Marcus Kane.
** In ''VideoGame/TwistedMetal 2'', Marcus Kane (driver of Roadkill) can see through the FourthWall and is convinced the world is fake. His wish is to get out, and when Calypso grants it, he wakes up in a hospital bed, [[AndYouWereThere surrounded by the other characters]] - the game was a dream he had in a coma. But then Calypso's eyes appear, hinting that the ''Twisted Metal'' world ''is'' real and he's sent Kane ''into'' a dream.
* Hong Meiling's storyline in ''VideoGame/{{Touhou}} Hisoutensoku'' starts normally... and then characters start acting out of character (Reimu apparently ''oozes evil'') and the background goes progressively from SceneryPorn to colorful doodles. After the final showdown [[GiantSpaceFleaFromNowhere with a giant catfish]], it cuts to Sakuya and Patchouli finding her sleeping in the library.
** The fan-made game ''Concealed the Conclusion'' implies that everything in all the games is a coma dream Reimu and Marisa shared. It works surprisingly well, given the general tone of the games, even if ''[=CtC=]'' itself is very, very dark. The Extra and Phantasm stages confirm that at least something of Gensoukyou survives after they wake up.
* Possibly the most horrifically shocking AND depressing endings in a children's video game, the ending to ''VideoGame/DrawnToLife: The Next Chapter'' for the DS... All of the adorable animal characters in the village are killed, G-Rated style (they fade away). One of the characters, named Mike, fades away last. The voice of Mike's sister Heather is heard asking the Creator, the god-like figure in the game to bring her brother back, which at first seems like a CrowningMomentOfHeartwarming. Then, her message changes and she was really trying to say, "God, just bring back my little brother to me." God? Like the god that people in real life pray to? That doesn't sound right at all does it? It is now revealed that Mike and Heather are actually humans, and the whole story with the village of cute animal things was all just a dream that Mike was having. It wasn't a regular dream either. It turns out that Mike and his family were in a car crash, which killed his parents and injured his sister. As Mike awakes from his coma, he is tearfully hugged by Heather, who has bandages over half her face. This is parallel to the Heather in his dream who had a half-shadowy face. Mari and Jowee, two other animal characters who were actually MORE IMPORTANT TO THE GAME'S STORY, are shown to have been two plush toys that Mike won at a fair before the crash.
* One of the MultipleEndings to ''VideoGame/WarioLandII'' has Wario, about to reclaim his treasure, falling into a pit trap before waking up back in his bed from the beginning of the game. The ending credits feature the invasion of the castle from the beginning happening for real.
* ''VideoGame/ChronoTrigger'' plays with this. After a boss battle, a time warp fills the room, sucking in all the characters. The screen turns black, and we're treated to a modified version of the game's opening, suggesting that the portion of the game you had just been playing through was a dream. It then turns out ''that's'' what was just a dream, and Chrono wakes up in 65,000,000 BC.
* In one of the endings of ''VideoGame/SilentHillHomecoming'', Alex is revealed to be a mental patient and the whole game was just a delusion, similar the Bad+ ending (DyingDream) in ''VideoGame/SilentHill1''.
** Ditto for ''Shattered Memories'', where the plot is just a fantasy conjured up by Harry's daughter, and Harry died in a car accident 18 years earlier.
* Even ''VideoGame/SamuraiWarriors 2'' does this. At the beginning of Nagamasa Azai's last stage in his story mode, the Battle of Kanegasaki, the story up to that point is revealed to be a dream he was having right before the battle. The entire thing being brought on due to how torn he was between helping his friends, the Asakura, and potentially betraying Oichi's love by attacking her brother, Nobunaga. Most of 'final chapters' of story mode are events that never happened due to the historical character dying, captured, or otherwise defeated. Or are nostalgic "best times" events that happen earlier in the chronology. This same game also features a sequence in Magoichi Sakai''s story mode in which he 'dreams' (or Fuma's ninja trickery) of bandits and chaos overwhelming the country after Nabounaga Oda's death.
* ''VideoGame/StrongBadsCoolGameForAttractivePeople'' sort of pulls this in the final episode. Having slain Trogdor, whose very existence was causing the entire WebAnimation/HomestarRunner world to fuse with the Videlectrix video game world, Strong Bad wakes up outside the ''Trogdor!'' arcade cabinet with everyone standing by him. He starts telling them about this wild dream he had [[AndYouWereThere pointing out how everyone standing there was part of it]] -- until he notices that Trogdor is standing right there. Trogdor immediately proceeds to run amok while the credits roll.
* In the Freedom Ending of ''VideoGame/ShinMegamiTenseiIIINocturne'', after Kagutsuchi is defeated and the energy of creation is released, the hero wakes up in his own bed. Although considering the letter from the teacher regretting what she did and thanking him, and the message, presumably from Lucifer, warning that in time, there'll be another adversary and to stay strong when it happens, it might also be OrWasItADream.
* ''MissionCritical'' does a very interesting version of this trope. The events that took place during the vast majority of the game were all a dream, but also really happened. Near the end, you discover that time travel into the past is impossible, but that information can be sent back. As a result, you trigger a dream in your past self that outlines everything that has happened in the game, giving you the chance to SetRightWhatOnceWentWrong.
* The LinearRPG has a dose of this as a component of its overall StylisticSuck.
* The Japanese version of ''[=Ace Combat=] 3: Electrosphere'' (of the ''VideoGame/AceCombat'' series) featured a branching storyline with five separate endings; unlocking all five would show a short cutscene where it's revealed the player character is an AI that has been put through a series of simulations by a questionably-sane professor as preparation for carrying out his plan to avenge his late wife.
* ''VideoGame/AmericanMcGeesAlice'', being the DarkerAndEdgier unofficial sequel to ''Literature/AliceInWonderland'' that it is, presents its twisted version of Wonderland as a view of Alice's traumatized psyche, into which Alice has retreated after her parents' death in a house fire. The game then centers around Alice trying to overcome her guilt and leave Wonderland safe and sane.
* Subverted in ''VideoGame/VisionsAndVoices''; no one (except maybe Marlowe) can remember or understand what happened, but it really did happen.
* Ling Xiaoyu's ending in ''VideoGame/{{Tekken}} 6'' ''looks'' like a {{Squee}} moment for Xiaoyu and Jin shippers, with Xiaoyu going as far as to hug him... cut to [[FanService Xiaoyu in bed in her underwear]] hugging Panda, who knocks her awake.
* In ''VideoGame/AWitchsTale'', the entire first playthrough is this, brought on by Queen Alice to test Liddell. The NewGamePlus is the real adventure, and contains story elements not seen in the first one.
* In ''VideoGame/SpongeBobSquarePants: Creature from the Krusty Krab'', the entire story is found to be just a dream of [=SpongeBob=]'s, [[DreamWithinADream then just a dream of Patrick's, and then just a dream of Plankton's]], and it goes on and on after that. Until it turns out it was just Gary dreaming.
* Occasionally, this is the case in the 1999 PlayStation game ''The Adventures of Alundra'' or just ''VideoGame/{{Alundra}}'' among fans. The twist, however, is that the dream is not the protagonist's. Instead, he enters other people's dreams and slay whatever monsters may be invading their dreams, trying to kill them. Most of the unnecessarily complicated dungeons are actually dreams. Stupid villagers not being able to dream of some puzzles that don't necessarily require the player to consult a walkthrough.
** Crazier: Whatever amounts of money or items Alundra finds inside other people's dreams, he gets to keep when he leaves them.
* A common fan interpretation of ''VideoGame/RuleOfRose''; the events were real, but messed by the protagonist's subconsciousness: Jennifer was a young child, not a 19-year old teenager during the actual events, the events did not take place on a giant airship and the imps were just creepy dolls and doodles and/or other children wearing masks, not inhuman monsters. Unfortunately the Stray Dog was real.
* In the Konami arcade game ''Devastators'', the entire events of the game were actually parts of a movie somebody was watching.
* The chapter Sleepless Night from ''VideoGame/HeavyRain'' turns out to be a DreamWithinADream when Madison wakes up after having her throat slashed.
* The opening to ''VideoGame/DragonQuestVI'' starts off as this... until you learn that what happened in the Hero's dream actually happened, and the world the Hero awakens in is actually a DreamLand.
* ''[[VideoGame/{{Suguri}} Acceleration of Suguri]]'' has the "Pudding Deity" storyline, which is a dream of Saki's, revolving around a war over the "ultimate weapon": Pudding.
* Conversed in ''VideoGame/EscapeFromStMarys''. Two teachers disagree on whether it's an acceptable ending for a story, and the two turn to blows.
* Happens in ''VideoGame/SNKGalsFighters'', specifically in [[VideoGame/FatalFury Mai Shiranui's]] ending. Winning the tournament and the [[PlotDevice K' Talisman]], means somehow that she can now marry Andy, who appears just in time... to "reveal" that he has been secretly a woman all of these years. Shocked, Mai [[CatapultNightmare awakes to reality]]. This is a nod to her ending in ''Real Bout 2'', except that she and Andy were about to get married when she finds out that he was a bald man who's wearing a long blond wig. And she wakes up and she realizes that it was a crazy dream.
* In ''[[VideoGame/BlazBlueContinuumShift BlazBlue: Continuum Shift Extend]]'', Platinum's Gag Reel has her teaming up with Rachel, Noel, Carl, and Arakune, aided by the Puppeteer Mask (Relius) in their fight against the evil Boing Queen (Litchi). Of course, at the end, we learn that it was [[TitleDrop all just a dream]].
* Played with in ''VideoGame/GoldenSunDarkDawn'' by way of an herbal drug that enables takers to share dreams. The tree which produces this herb is sick... because ''its''' dreams are being haunted by the spirits of a destroyed swamp. Our heroes trip their way into the dream of the swamp and lay the spirits to rest... and when they wake up, one of the spirits has ''left a corpse beside them, with an artifact they can take''.
** Played for [[TearJerker sadness]] if you buy extra Dream Leaf and use it in war-torn Border Town to dream of the town's better days (read: [[GuideDangIt get the Haures summon]]).
* ''VideoGame/{{Disgaea 4|APromiseUnforgotten}}'''s Fuka Kazamatsuri insists for the entire game that everything that happens is just part of a dream she's having, despite enormous and constantly increasing evidence that she's wrong.
* All three games in ''VideoGame/TheGreatGianaSisters'' series shows Giana having some sort of control over her dreams, or at least incredibly vivid ones, since they tend to end with her waking up out of bed. (It's never made clear if it's simple harmless dreaming or if she has a dream-based power.) Either way, her sister Maria often gets caught up in them too.
* ''VideoGame/SheepDogNWolf'' starts with Ralph ending his shift, going back home, and watching television, only to be forcibly and suddenly taken by Daffy Duck and turned into a contestant of a game show. 14 stolen sheep and one space trip later, Ralph comes back home with his own sheep... which suddenly turns into Sam Sheepdog. When he's just about to punch Ralph, the latter suddenly wakes up in front of his TV, and realizes it was ALL just a dream, and it's time to go back to work. His expression while he's walking towards the punch clock says everything.
* One of the possible endings of ''VideoGame/TheStanleyParable''. [[spoiler:[[DefiedTrope Except it's not.]] The surreal looping hallways and the inexplicable reality warping powers are actually symptoms of Stanley going insane. When Stanley tries to wish himself awake from the dream, it fails, and he dies from the shock of the realization.]]
* A subversion happens near the end of ''VideoGame/ADanceWithRogues'', when the Princess is killed by Hyath. She wakes up in a castle, with her father surprisingly being alive and everyone telling her all the horrors she's experienced in the last year were all fever dreams due to her being comatose with the Red Fever and barely alive. But later it turns out this was all just a ploy by Arto Benthur, who made a deal with Hyath and the Old Man in order to force her into marriage. Her "father" is an imposter who's there to make her believe everyone's lies and coax her into marrying Arto, thus legitimizing Arto and the Dhorn Empire's control of Betancuria.
* ''VideoGame/DreamingMary'' is set in Mary's DreamLand, with all the characters fully aware that it's a dream and welcoming her to it.
[[/folder]]

[[folder:Visual Novels]]
* The Dice-Killing Chapter of ''[[VisualNovel/HigurashiWhenTheyCry Higurashi no Naku Koro ni Rei]]''.
* In the fourth arc of ''VisualNovel/UminekoWhenTheyCry'', there is a very memorable scene in which Maria kills her mother Rosa repeatedly and grotesquely. From the context, it is to be inferred that the entire scene is a dream. However, it's never stated explicitly, [[MindScrew just like a lot in this series]].
* [[JerkWithAHeartOfGold Tomoya]] in ''VisualNovel/{{Clannad}}'' has a dream that can only be described as trippy, to him it all seemed fairly natural. Makes one wonder what it was that Kotomi put in the pie he ate before he passed out.
* Played with in ''VisualNovel/ElevenEyes''. The second-to-last episode of the anime shows everything going downright ''awful'' for the protagonists, with several characters dying, the hero and heroine having sex, and the BigBad claiming a rather unsettling victory. It ends with a little foreshadowing that all is not as it seems. Start the next episode, and it turns out the whole thing was a vision of the future by the main character, who then averts it.
* The whole point to ''[[VisualNovel/{{Tsukihime}} Kagetsu Tohya]]''. Shiki figures out more and more often than he's living in a dream right now where days repeat instantly. Yesterday is the same as today and today is the same as tomorrow. Everyone ''inside'' is actually apparently the same people he knows and have their own versions of a nightmare i.e. Dark Elesia for Ciel. Also, Len, who is making the dream. It's just a dream, but Shiki can't leave until Len dies (he doesn't want that) or he can make a contract with her so she doesn't feel the need to maintain the dream. In the original game, Shiki has dreams of himself killing people yet wakes up in the morning right where he was without having left his bed. Only the people he saw die are really dead. Even worse, the one time he doesn't remember his "dream" he wakes up with his hands and arms absolutely covered with blood, because he really did go out and kill people that night.
** There's also the first [[HGame eroge]] scene in the original game, which turns out to be All Just A Wet Dream.
* The [[MultipleEndings Forgotten Dream endings]] of ''VisualNovel/YoJinBo'' have Sayori waking up at home, alone, in her own bed, and barely able to remember the guy she fell in love with, assuming the entire adventure to have been a dream.
* ''[[VisualNovel/FateHollowAtaraxia Fate/hollow ataraxia]]'' ...Maybe. What's dream and what is real can be difficult to separate.
* ''VisualNovel/CorpseParty'' has this as one of its Wrong Ends. It turns out to be a case of OrWasItADream and GroundhogDayLoop.
* Teased at in ''VisualNovel/HatofulBoyfriend: Holiday Star''. Halfway through the second chapter something bizarre happens - for one, there's a DeathRay and the heroine rates it as about as powerful as one of her "Starlight Kicks" - and the exit of that scene leads directly to the heroine in a cafe saying "Crazy dream, huh?" to her best friend. He's flabbergasted and falls for it, and chides her when she says she was joking, this stuff really happened. This is Hatoful Boyfriend, after all - bizarre is everywhere.
** Also poked at in the Shrine Visit with Yuuya. He starts trying to confess why he's never at school, then changes his mind, dissembles, and says he had a dream like that, anyway.
[[/folder]]

[[folder:Web Comics]]
* This [[http://www.qwantz.com/archive/001183.html episode]] of ''Webcomic/DinosaurComics'' satirizes the trope quite nicely.
* As does [[http://www.webcomicsnation.com/shaenongarrity/narbonic_plus/series.php?view=archive&chapter=29025#110861 this]] ''WebComic/{{Narbonic}}'' strip.
* The brief [[http://www.sluggy.com/daily.php?date=030707 "Magic Flap"]] arc from ''Webcomic/SluggyFreelance'' ends like this.
* ''Comicstrip/ThePerryBibleFellowship'' sets this up, [[http://www.pbfcomics.com/?cid=PBF044-Falling_Dream.gif then subverts it]].
* ''WebComic/EightBitTheater'' [[http://www.nuklearpower.com/2008/12/11/episode-1070-what-were-you-expecting/ had one of these]] as a fake final episode, since its author loves [[AntiClimax jokes that are on the reader]]. Except that what was intended to cause InternetBackdraft instead resulted in numerous fans genuinely pleased with the horrible ending, as it fit the comic perfectly, and ''thanking'' the author for years of free entertainment.
* ''WebComic/YuMeDream'' has a WhamEpisode (and BrokenBase inducer) in the middle when this happens, leading to a ComingOutStory having a GenreShift; instead of the usual dream revelation being at the end and nothing in the real world having changed, the dream is the turning point of the story and the main character is greatly affected by what happened. The comic was conceived after its author experienced this trope for real: she met a girl and fell in love, only to wake up after what felt like months of being with her. Interestingly, the dreams ''are'' real, and what we think is the dream world is actually another dimension called "Nod", which means it's ''not'' just a dream.
* ''WebComic/SilentHillPromise'' uses this in the beginning, before getting to the real horror.
* [[http://explosm.net/comics/1590/ This]] ''WebComic/CyanideAndHappiness'' comic plays with this trope.
* ''Webcomic/TRULifeAdventures'' is suggesting everything that happened since the first time travel story has been Bob's dream.
* In ''Webcomic/{{Housepets}}'', the Celestial Nerds (Pete, Spirit Dragon, Great Kitsune; the ones using Babylon Gardens as pawns in their [[CosmicChessGame Cosmic D&D Game]]) end any dealings with mortal pets with the trick of making them wake up in their bed as if it was all just a dream. Tarot calls it "standard celestial policy".
** In most cases, it's a very thinly-veiled tactic, and those it happens to tend to return with relics, for instance [[http://www.housepetscomic.com/2010/07/14/never-believe-its-not-so/ a gold statuette of a derp-faced kitsune saying "Or was it"]]
* [[http://dizzy.pestermom.com/?p=thcomic55 This]] ''Webcomic/TouhouNekokayou'' comic turns ''Concealed the Conclusion's'' All Just a Dream into a MindScrew, simply by switching the "all" and the "dream."
** [[http://dizzy.pestermom.com/?p=thcomic128 A later one]] combines this, AcidRefluxNightmare, and a BrickJoke about Meiling's accused HomosexualReproduction. ([[WordOfGod Word of Muffin]] states that only this comic is All Just A Dream, not the entire StoryArc.)
* ''[[http://gr3g0r.deviantart.com/art/Featherlike-98184784 Featherlike]]'', from the man who brought you [[http://gr3g0r.deviantart.com/art/Untitled-85561930 this]] popular 4chan comic.
* ''WebComic/DanAndMabsFurryAdventures'' manages to make this actually downright chilling. The character dreaming ''is explicitly unable to dream''.
* In ''WebComic/BittersweetCandyBowl'', The chapter "[[http://www.bittersweetcandybowl.com/c50/p1.html Wonderland]]". Lucy "wakes up" at the beginning of the chapter and the chapter before it was an April Fool's comic, making it all just a dream as well.
** [[http://www.bittersweetcandybowl.com/c59/p1.html Chapter 59]] was All Just A Daydream. Paulo's. Best. Daydream. ''' Ever'''.
* ''Webcomic/QuestionableContent'' [[http://questionablecontent.net/view.php?comic=1169 #1169]] is a good example of this, and also a good example of a DreamWithinADream.
* Used and then subverted in [[http://darklegacycomics.com/200.html this strip]] of ''WebComic/DarkLegacyComics''.
* In ''WebComic/SoulSymphony'' the protagonist purposely makes another character believe that his experience of using magic to fight evil demons was this. It really wasn't.
* Grace of ''Webcomic/ElGoonishShive'', [[http://egscomics.com/?date=2007-05-23 goes through her first day of highschool]] then wakes up disappointed that it was a dream but still hopeful the experience would be close.
* This happens twice in ''WebComic/MyMilkToof'' with the episode of "villainous ickle" who goes around breaking everything and when they go fishing they fall asleep and dream of catching a fish.
* Webcomic/EvilDiva: [[http://www.evildivacomics.com/?p=282 Victorious and popular, as she isn't]]. Apparently you should BeCarefulWhatYouWishFor.
* Happens every year in WebComic/{{Rhapsodies}} with [[{{cloudcuckoolander}} Kevin]] getting shanghaied into helping with Santa's Christmas rush. This always ends with him waking up... Though occasionally there's a few details lying around to make the audience wonder.
* In ''Webcomic/MinionComics'', there's a[[http://www.meetmyminion.com/?p=921 short dream sequence]] involving Dingus's fantasies about predators, aliens, and the holy grail.
* In Webcomic/{{Greg}}, Greg dreams he's a swashbuckling slayer of beasts and a suave ladies man, too bad the reality is so different, [[http://gregcomic.com/2012/02/23/world-of-gregcraft-page-14/ here]].
* In ''Webcomic/LsEmpire'', the ZombieApocalypse during the April Fools Day special was actually a movie directed by Creator/MNightShyamalan.
* ''Webcomic/{{Educomix}}'': The entire Garden of Edam storyline was dreamed by Jessica. Also, in [[http://educomix.thecomicseries.com/comics/133/ this strip]], Dave and Jessica's first kiss was actually dreamed by Jessica.
* ''Webcomic/CommanderKitty'' starts off with CK apparently having become the galaxy's greatest hero and the emperor of the entire cat system. [[http://www.commanderkitty.com/2009/02/08/and-now-our-story/ No surprise that it's all just a crazy daydream]].
* In ''Webcomic/UrbanUnderbrush'', Caius dreams that SantaClaus rescues him, only to learn that the tenants of the building had, and a vet had patched him up.
* ''WebComic/{{Precocious}}'': An arc of what turn out to be the kid's nightmares, [[http://www.precociouscomic.com/archive/comic/2012/07/07 culminating]] in a ShoutOut to ''StElsewhere''.
* In ''Webcomic/{{Sinfest}}'', [[http://sinfest.net/archive_page.php?comicID=4898 the fembot being disassembled]] turns out to be AnxietyDreams -- she's actually safely in Lil' E's home.
[[/folder]]

[[folder:Web Original]]
* More than once this has been used for ''Roleplay/SurvivalOfTheFittest'' characters, usually in imagining a rescue. However, on one occasion it was used to make it appear as if a particular character had died, only for it to be revealed that it had been a dream.
* Most of the second half of ''[[Literature/TheTaleOfTheExile The Third Night]]'' takes places during Gaven's hallucinogen-fueled MushroomSamba. [[SchrodingersButterfly It's an open question what events actually happen to him and what's all just in his head]].
* WebVideo/TheNostalgiaCritic
** His review of ''Film/SurfNinjas'', in which every stupid scene (but one) was greeted with increasingly fervent cries of "Genius!", was eventually revealed to be a dream.
** The end of the review of ''Series/FullHouse'' when the Olsen twins came [[HeKnowsTooMuch to silence him]] was revealed to be a dream. Then they showed up again, which was revealed to be a dream. And so on.
** This also appears to be a pet peeve of the Critic's, given his reaction to learning that ''Film/{{North}}'' was entirely a dream.
* This concept is an enemy in ''ImprobableIsland''.
* ''Film/ProjectMillion'' is revealed to be a variant of this; the events that we watched were just a video made by the people starring in it.
* Parodied in the ''WebAnimation/HomestarRunner'' short "HREMAIL 2000". Homestar puts on a regular puppet show for Marzipan using his shoes, which "gets cancelled after the third season":
-->"You mean the whole last season was a ''dream''?! Gimme a break! They [[JumpingTheShark shoulda just had babies]], and then the babies shoulda gotten married."
* ''Machinima/RedVsBlue'' has this in episode 28.5, "The Last Episode Ever". In it, Simmons comes back as a ghost, but is really [[Franchise/ScoobyDoo Old Man Caboose]], Tucker and Doc are running away to get married and Lopez is speaking French. The end reveals the whole thing was a dream by Church...
-->'''Church:''' Huh? Oh, thank God. It was all a dream. All a dream. All a dreamiemiemiemiemiemiemie...\\
'''Lopez:''' Oui, c'était un rêve horrible... OU ÉTAIT-IL?!? [Yes, it was a horrible dream... OR WAS IT?!?]
** This was also used for a non-canon alternate ending on the Season Five DVD, where Church had been knocked out instead of killed from Sheila's attack in episode eight and had dreamed up the other ninety-two episodes, except he forgot all about his green-armoured teammate, Jacobs.
** Another of the alternate endings did something very similar except, instead of being a dream, the whole series was an XBox Live game played by the characters.
* ''Website/TheOnion'' episode [[http://www.youtube.com/watch?v=7qYL_KT06-U Today Now!: Save Money By Taking A Vacation Entirely In Your Mind]] deals with using this trope to your advantage.
* An episode of RanmaAbridged features Akane sleepwalking and causing chaos as she goes through several dreams. After waking her up, they discuss how ridiculous the episode was, until it turns out to be Ranma's dream.
* At the end of some cutscenes in ''VideoGame/SonicTheHedgehog2SpecialEdition'', people are seen waking up. This has no bearing on gameplay whatsoever.
* Blog/ThingsMrWelchIsNoLongerAllowedToDoInAnRPG
-->598. Any adventure that ends up with my character being worshiped as an orc god was just a dream. Retroactively if need be.
-->1007. That whole Expedition to the Barrier Peaks? DreamSequence.
* The ''Website/{{Cracked}}'' article "[[http://www.cracked.com/quick-fixes/why-saved-by-bell-all-dream-conspiracy-theory/ Why 'Saved by the Bell' is All a Dream: A Conspiracy Theory]]" explains why ''Series/SavedByTheBell'' has to be an escapist dream of a character in ''Series/GoodMorningMissBliss'', using clues from the ExpositoryThemeTune.
* In ''Podcast/CriticalHit'', a Dungeons and Dragons live play podcast, GM Rodrigo uses this to devastating effect when the characters are in deep in the mire of the Demonweb (compounded by the reaction of the players).
* In ''WebVideo/UltraFastPony'', the episode "Random Eye Magic" begins with Twilight waking up from a DreamWithinADream, then ends with Twilight waking up yet again, realizing the entire episode was a dream.
* In ''WebAnimation/SonicForHire'', Sonic goes on an extreme acid trip and actually believes that he has a successful job with VideoGame/ToeJamAndEarl, but then Tails "wakes" him up, making him realize he was just on an acid trip.
* The Machinima/TeamServiceAnnouncement short ''[[http://www.youtube.com/watch?v=rwdjedbBtwc Compression Blast]]'' is just a daydream by the Pyro, hence why his airblast was so powerful. Powerful is an understatement, really, as whoever got blasted by it was not only extinguished but [[spoiler:becomes rich, a king, and gets tons of women and a dancing posse.]]
* Most of the first part of Blog/AskKingSombra was his subconscious dreaming after he was blown to bits by the Crystal Heart, trapping his mind in his horn in the process. The only thing that's ''real'' is Coffee Talk, who he absorbed in his shadow form before it happened.
* According to [[http://notalwaysright.com/his-lawyers-should-have-the-book-thrown-at-them/33693 this]] story at ''Website/NotAlwaysRight'', "And it was all just a dream" is the most despised sentence in the literary world. It's kind of telling that it's not one of the five reasons that the person telling the story gives as to why the client's novel sucks.
* ''LunaGame End'''s true ending, unlocked after replaying games 4 and 0, reveals that the experience was a "strange nightmare" Luna had after passing out while "helping Pinkie Pie collect some things". [[MoodWhiplash But then]] there's a ScareChord as Pinkie turns into [[MadnessMakeover her straight-haired "Pinkamena" persona]].
[[/folder]]

[[folder:Western Animation]]
* Naturally, ''WesternAnimation/TheSimpsons'' has parodied this numerous times.
** In the season six episode "Lisa's Rival", Lisa is competing against a new student, Allison, for the first chair saxophone position when she faints in the middle of it. After "regaining consciousness", she's told that Allison got the chair and Lisa screams. The screen then blacks out and she really wakes up... only to be told the exact same thing with the added disclaimer, "And believe me, this is not a dream!"
** In the episode after Mr. Burns is shot, Smithers wakes up in his apartment to find [[ShoutOut Mr. Burns in the shower]], perfectly fine, and concludes with relief that it was all a dream. Burns then informs Smithers that they are the stars of a 60s detective show called ''Speedway Squad'', at which point Smithers wakes up again and realises, "Wait, ''that'' was all a dream!" -- Mr. Burns really has been shot. Smithers then remarks, "Hey, then maybe I ''haven't'' become a hideous drunken wreck, and --" only to realise that he's in the exact same state he started the episode in, and his mouth still tastes like an ashtray.
** Even the specific tendency of soap operas to rely on this trope is parodied. In one episode, Moe lands a role on [[SoapWithinAShow a soap called]] ''[[SoapWithinAShow It Never Ends]]'', only to stumble upon a future script in which his character is killed off. He angrily confronts the producer.
--->'''Producer:''' ''(holds up script)'' You idiot! Pink pages always mean a dream!\\
'''Moe:''' I thought dreams was on goldenrod.\\
'''Producer:''' No, goldenrod is for [[AdventuresInComaland coma fantasies]]!
** Happens in "WesternAnimation/TreehouseOfHorror" episodes which are already {{Bizarro Episode}}s. In [=TOH=] II, Homer has a nightmare that ends with Mr. Burns' body being crushed by a robot. He awakes to find his boss' head stitched to his shoulder. In [=TOH=] V, Bart finds the events of "Nightmare Cafeteria" were just a dream. Marge assures him he has nothing to fear except the fog that turns people inside out. In [=TOH=] XVI, "Bartificial Intelligence" is a dream of Homer's while possessed by the devil. He's just happy that gets him out of work.
** The episode "The Squirt and the Whale" has a rather heart-breaking example. After several futile efforts to rescue Bluella, the beached whale, Lisa decides to keep her company for the night. She wakes up to find the army has formed a plan to rescue Bluella. They loop heavy duty straps under her and carry her out to sea. Bluella happily swims away, then leaps into the sky. Lisa then wakes up for real...and discovers Bluella has died.
* In the ''ComicStrip/LittleLulu'' cartoon "[[http://www.imdb.com/title/tt0151675/ Musica-Lulu]]", Lulu sneaks out to play baseball instead of practicing her violin, and when knocked out by a foul ball, she wakes up in a land of musical instruments, [[KangarooCourt who arrest, try and imprison her]] for her misdeed. When she breaks out of the jail, she is chased and terrorized by the musical instruments. It turns out to be a dream.
* ''WesternAnimation/{{Futurama}}''
** "The Sting": Fry dives in front of a space bee about to sting Leela, gets impaled and injected with venom, and dies. Leela who comes out of the incident with only a "boo-boo", tops, begins feeling horribly guilty for the loss of Fry, and [[SanitySlippage slowly descends into insanity]], going through one DreamWithinADream after another, one of which includes a musical number in which the other characters serenade her with the song "Don't Worry, Be([[JustForPun e]]) Happy." stopping with Leela [[AxCrazy trying to steal Fry's corpse and hide it under her bed to remind herself he's dead]]. At the climax, the walls are screaming "YOU KILLED FRY" at her and bees are materializing out of a broken jar of honey. It turns out it was all a coma-induced dream; Fry had come out of the incident relatively unscathed, save for the gaping hole in his chest, which was easily repaired by future-medicine, while Leela got all the venom from the bee and nearly died.
--->'''Bender:''' [[BlackComedy You were in the best coma I've ever seen!]]
** In another episode, Bender is forced to get an upgrade to make him more compatible with Planet Express' advanced new robot. He breaks free and ends up on a deserted island populated by outdated robots, then returns to wage war on technology. The whole storyline was actually an artificially induced {{Aesop}} caused by the upgrade, resulting in the following exchange:
--->'''Bender:''' But I destroyed the technology of the world! I ran on the beach and felt the sand between my foot-cups!\\
'''Technician:''' ''(shrugging)'' Everyone experiences the upgrade a little differently.\\
'''Bender:''' Oof. If that stuff wasn't real, how can I be sure ''anything'' is real? Is is not possible, nay, ''probable'', that my entire life is just a figment of my or someone else's imagination?\\
'''Technician:''' No. Get out.
*** Then just to mess with the viewer even more, [[BigLippedAlligatorMoment he ends off skipping merrily away in a]] SugarBowl at the end.
** In the first "Anthology of Interest" episode it is revealed at the end that the entire episode, consisting of three scenarios generated by the professor's What-If machine, was, in fact, a scenario generated by the professor's What-If machine for what life would be like if he invented the "Finglonger" (basically a glove with a really long index finger). Strangely enough, the What-If machine seems to know things that no one else does, like the fact Fry not coming to the future would cause a universe-destroying paradox, [[CallForward because he is]] [[MyOwnGrampa his own grandpa]]. And the second Anthology of Interest featured a segment that really ''was'' a dream, instead of a What-If, as the writers didn't wish to reveal Leela's true heritage at that point of the series. Also, the Professor eventually invents the Finglonger in real life. This all seems to imply that the What-Ifs are 'canonical hypotheticals' that would have actually happened that way if the setup was true, making them more ForWantOfANail than All Just a Dream.
* ''WesternAnimation/FamilyGuy''
** The absurd (even for them) [=Y2K=] episode, "Da Boom", ends in live-action with Pam Ewing of ''Series/{{Dallas}}'' waking to Bobby in the shower and relating the episode ([[NeverLiveItDown in the same method the show retconned a season]]). Bobby has no idea what ''Family Guy'' is. (This sequence features the real life Victoria Principal and Patrick Duffy.)
** A variation occurred in the episode "Lois Kills Stewie." When Peter kills Stewie before he can act on his chance to kill Lois, the ending reveals that it was all just a computer simulation designed by Stewie of what would happen had he successfully conquered the world. Brian says [[LampshadeHanging it was pretty much a dream]], and Stewie objects that it was a "simulation". Brian tells him that if theoretically someone watched the events only to realize that none of it really happened, it would piss people off. Stewie says that hopefully they would have just enjoyed the ride. Then it ends off ''[[Series/TheSopranos Sopranos]]''-[[SmashToBlack style]] [[RuleOfFunny just to shove salt in the hypothetical wound.]]
* In ''WesternAnimation/EdEddNEddy'', "Take This Ed and Shove It", the finale of the fourth season (and originally of the series) ended with the elderly Eddy discovering that the whole show has been apparently a series of dreams about his childhood. The canonical implications of this are dubious at best, as the show has been renewed for two more seasons; though it explains things such as {{Flanderization}}, the cast [[MiddleOfNowhereStreet never leaving the cul-de-sac]], [[MinimalistCast how we never see any characters but the main cast even at school]], and just the general vagueness of setting throughout the show.
** In a season episode, Ed has a nightmare about Jonny. But then the episode ends with ''Jonny'' waking up in horror. So Ed had a dream that he was scared of Jonny, but then it's really Jonny having a dream that Ed had a dream that...he's scared of Jonny...[[LogicBomb uhm]].
* ''WesternAnimation/SouthPark''
** First appeared in the episode "Flashbacks", which twisted the conventional ClipShow by having each clip end with a completely different situation from its original episode, ending every time with [[RunningGag a reference to ice cream]] among other things. This was all {{fram|ingDevice}}ed with the kids telling stories while the bus lies on the edge of a cliff. At separate points, they flash back on a [[Series/HappyDays Fonzie]] stunt they witnessed (which never happened on the show) and an earlier moment in the framing device itself. When the bus finally falls into the chasm, it inexplicably lands on a giant tub of ice cream. All of this, including an unrelated subplot surrounding Ms. Crabtree, were all part of a dream by Eric Cartman which ended with him eating beetles and ice cream once again being brought up, thus revealing that the entire episode was a dream within a dream conjured by Stan. ("Dude. That's a pretty fucked up dream." "Yeah, I must be having some real emotional problems.") After ''that'' was established, however, the episode returns one last time to Ms. Crabtree's subplot, where her love interest Marcus -- [[IHaveManyNames or was it Mitch?]] -- tells her that he can't stay, as everything on her side of the story was just a kid's dream. Her response? "I know, but let me just pretend as long as I can." (Aha! So ''Miss Crabtree'' was imagining [[IKnowYouKnowIKnow that Stan was imagining that Cartman was imagining]] that the bus was teetering on the edge of a cliff! Clear as mud.)
** Subverted at the end of the "Imaginationland" series of episodes. Butters wakes up and starts telling his parents about the dream he had that he saved Imaginationland. His parents tell him that it really happened and they read all about it in the morning paper. [[AbusiveParents And then they ground him for saving Imaginationland instead of helping his mother clean the garage.]]
** Also subverted earlier on, in the first chapter. Kyle wakes up and assumes that the Muslim terrorist attack on Imaginationland and Butters being left there was all a crazy dream, but when he calls up Stan, he finds out that he had the exact same dream. Then Butters's parents come into Stan's house worrying about Butters. Finally, the Pentagon reports that our imagination was taken over by terrorists, complete with a videotape showing proof. [[ArsonMurderAndJaywalking And Cartman still wants his balls sucked by Kyle.]]
** Also subverted in the season 3 episode "Spontaneous Combustion". Cartman was tied to a cross for a crucifixion re-enactment, but his friends forgot about him and left him up there. A couple of days later, Chef finds him and takes him off the cross. The following conversation is from the car ride home.
--->'''Chef:''' Eric, I have to tell you something and it's really gonna bum you out.\\
'''Cartman:''' What?\\
'''Chef:''' It'll really piss you off.\\
'''Cartman:''' What, tell me!\\
'''Chef:''' This is just a dream, you're still up on that cross.\\
'''Cartman:''' ''(he wakes up, still on the cross)'' Oh, dammit!
* ''WesternAnimation/BatmanTheAnimatedSeries''
** In [[Recap/BatmanTheAnimatedSeriesE30PerchanceToDream "Perchance to Dream"]], Bruce Wayne wakes up in a world where he isn't Batman. He eventually realizes that it is a dream (because some people's dreams work in such a way that they can't read anything in a dream) and ends it by jumping off the clock tower. Apart from the reading issue, wish fulfillment dreams don't work on Batman; a world where Bruce Wayne is happy? His subconscious knows that's impossible.
** [[Recap/TheNewBatmanAdventuresE12OverTheEdge "Over the Edge"]] has Batgirl getting hit by Scarecrow's fear gas and hallucinating a scenario where [[BadFuture she dies, and Gordon goes to war against Batman]]. The dream ends when Bane, who had just been electrocuted to near-death, uses his last breath to toss the Bat-signal at Batman and Gordon, knocking them both off the top of Police Headquarters.
* ''WesternAnimation/{{Rugrats}}''
** The episode "Pickles vs. Pickles" was about Drew dreaming about Angelica suing him for making her eat broccoli.
** The episode "In the Dreamtime" begins with Chuckie waking up from a dream, [[http://www.youtube.com/watch?v=91TKa2133vQ ending like this.]] His father explains that there is nothing to fear as nothing can hurt you in a dream. In the next scene Chuckie explains his dream to the babies only for that to be revealed to be a dream. When he next talks to them, he decides that he is still in a dream. Yet when he gets hurt, he realizes it isn't a dream. Chaz then puts his son to bed leading to [[http://www.youtube.com/watch?v=-RNmINEsN6U the final scene of the episode.]]
* Subverted in the ''WesternAnimation/LooneyTunes'' cartoon ''Water, Water Every Hare''. At the end of the cartoon, WesternAnimation/BugsBunny wakes up in his bed and thinks the events of the cartoon were all just a dream. Then Gossamer, who Bugs had made small earlier, comes in on a boat his size and says, "Oh yeah? That's what you think!"
** Played straight in the early Merrie Melody ''Smile, Darn Ya, Smile''.
** In ''A Waggily Tale,'' a boy who mistreats his dog is sent to his room by his mother, and he falls asleep dreaming he's a dog; in the end he learns what a dog's life can be like, and learns to be nice to him.
*** In a final twist, the boy's dog remarks, "In truth, I'm just another little boy having a dream."
** ''Scrap Happy Daffy'' (1943) is a cartoon-short-length dream WesternAnimation/{{Daffy|Duck}} has that he's defending his scrap drive pile against Nazis and proceeds to throttle them with superhuman powers. Or was it a dream?
-->'''Nazis:''' (''in their sub, on top of Daffy's scrap pile'') Hey! Next time you dream, leave us out of it!
* Subverted in ''WesternAnimation/TheVentureBrothers'' When Billy Quizboy wakes from having a dream, he's all ready to launch into a AndYouWereThere scene when he suddenly realizes the events from the dream were ''true'', screaming '''''you bastards!''''' while assaulting his so-called "friends."
** But played straight several times in the Christmas special episode.
** Hank Venture also tries to believe that a mystery involving his missing father and bodyguard and an impending nuclear holocaust is all "just a dream". It's not.
* The ''WesternAnimation/PhineasAndFerb'' episode "Phineas and Ferb Get Busted" revolves around Candace actually managing to bust Phineas and Ferb, resulting in them being sent to an extremely strict reform school where they are brainwashed. She soon realizes how much she misses them and, along with Jeremy, ventures to break them out. At the end of the escapade, it's revealed that it was a dream Candace was having. She discusses it with the family, which results in them guessing that Perry is a secret agent, causing government agents to bust in and take them away while Perry is told he'll have to be relocated... and ''this'' turns out to be [[DreamWithinADream just a bad dream that Perry is having]].
** The actual moment she realises what's going (the first time), is hilarious.
--> '''Candace''': Oh, I get it. This is all a dream!
--> '''Jeremy''': That would explain the talking zebra.
--> '''Candace''': Oh, no, I see ''him'' [[RunningGag all the time]].
** Invoked and subverted in the ChristmasEpisode: Phineas [[CatapultNightmare sits up in bed]] and exclaims, "It was all a bad dream! [[SavingChristmas Christmas isn't cancelled]] after all!" -- only for [[RevealShot the camera to pan out]] to Isabella, who says that no matter how many times he tries that, it's not going to change anything.
* ''WesternAnimation/SpongeBobSquarePants''
** At the end of one episode where Mrs. Puff goes to jail, it's revealed that it was all a dream, and Spongebob is going to jail. Except that was all a dream, and she's in the boat with a random person from prison. After that, she just gives up, [[LeftHanging and the episode ends]].
** The episode "The Main Drain" ends like this.
* In the ''WesternAnimation/InvaderZim'' episode "Dib's Wonderful Life of Doom", Dib receives supernatural powers from the alien race of the Meekrob, to help him stop Zim and the Irken invasion. The episode portrays Dib's following life being a celebrated Hero and the most successful paranormal investigator in the world, until old age, where in a TV interview he confesses having tossed a muffin at Zim in the school cantine once, upon which the moderator pulls of a mask revealing Zim's face laughing at him. Dib wakes up in Zim's laboratory realizing all of this was just a dream, programmed and simulated by Zim.
* ''WesternAnimation/TomAndJerry'' has one too. In "Heavenly Puss," Tom wangs his head and kills himself where he ends up in train station in Heaven. The boarder however won't let him through due to his chasing Jerry all the time but give Tom a change to redeem himself by getting Jerry to sign a forgiveness certificate, otherwise Tom will end up in Hell tormented by a devil looking Spike. Tom is then sent back and tries everything he can to get Jerry to sign the thing. In the end though he doesn't make the deadline and it looks like he's doomed...till he wakes up and more than glad to find it was a dream. Even kissing his worst enemy to show his gratefulness.
* An episode of ''WesternAnimation/RockosModernLife'' deals with Heffer choking to death on a chicken ribcage and ends up going to Heck to be punished for the [[SevenDeadlySins deadly sin]] of Gluttony; the entire episode turns out to be a dream ([[DreamWithinADream within a dream within a dream]], no less).
* One episode of ''WesternAnimation/KimPossible'', "Rewriting History", repeatedly {{lampshade|Hanging}}d the increasingly unlikely coincidence that [[GenerationXerox all the cast's grandparents]] were involved in a plot at the start of the century, with a last minute solution that "seemed like something from a dream" - because that's what it all was. Which is sad, because GenerationXerox plot seemed pretty cool. Though, oddly, the episode did end with an even more absurd GenerationXerox being canon.
** Though WordOfGod is that Kim and Ron's ancestors from the dream actually existed.
** The PostScriptSeason began with a scene of Kim and Ron at the prom from the [[SeriesFauxnale "finale"]] [[WesternAnimation/KimPossibleMovieSoTheDrama movie]]. The scene takes a horrific turn as Kim's face distorts into a Jokeresque grin before she dissolves into a puddle of goo (like one of Drakken's synthodrones from the movie). Then Ron [[CatapultNightmare wakes up screaming]].
* ''WesternAnimation/{{Squidbillies}}'' plays with this trope in the first episode. It first portrays Rusty spending his childhood being [[RaisedByWolves raised and repeatedly mauled by wolves]], and then blowing them up along with him when he just had enough. That was revealed to be all just a dream, and then shows him as a party-hardy drinker who goes to rock concerts. That is also just a dream, and then shows him still living with Early's sister Lil (which was before all the dreams), who calls him out on his lack of manhood. That, too, was just a dream. Rusty raping some small creature... that really happened.
* ''WesternAnimation/EekTheCat'' has an episode called "Rocketship to Jupiter", in which Eek gets a large box dropped onto him by Sharky, and ends up in [[ShowWithinAShow the Squishy Bears]] World, where the Squishy Bears leave their rocketship and house. He saves the Squishy Bears, but is met by the Giant Who Thinks Bears Might Taste Good, so he tricks the Giant when it's raining (by Professor Wiggly). After that, Eek and the Squishy Bears try to fly to Jupiter on their rocketship, but the lever was mistakenly switched to the sun by one of the bears, so they fly to the sun instead, where Eek is about to burn. But then, Eek was suddenly waken up by JB, who serves him a bowl of cat food. He realizes it was all a dream.
** In "Eek Goes to the Hot Spot", while being chased by Sharky, Eek is run over by an oncoming truck and gets killed, and thus he mistakenly gets sent to hell (instead of heaven). There, Eek confronts [[TheDevilIsALoser its ruler, Fido]], for a long time, who forces him [[ImpossibleTaskInstantlyAccomplished to clean out an infinitely large litterbox for three seconds]]. Then Eek finishes this task, and happily goes to heaven (with two angels flying down and carrying him away), waving goodbye to Fido. But just then, [[DeathIsCheap Eek wakes up from all this lying in the backyard]], and gets chased by Sharky once again.
* Lampshaded in an episode of ''WesternAnimation/SheepInTheBigCity'' where two scenes turns out to be dream sequences -- much to the annoyance of the {{narrator}}, who complains about this being "[[RageAgainstTheAuthor lazy writing]]!"
* In the "Leave it to Munchy" story of ''WesternAnimation/PBAndJOtter'', Munchy Beaver prevents all of Lake Hoohaw from being flooded, but it turns out to be just a dream. This becomes very obvious when the characters are shown freely swimming about, talking to each other and doing the iconic "Noodle Dance" underwater without any special gear.
* In the episode "On the Run" of ''WesternAnimation/SagwaTheChineseSiameseCat'', the protagonist and her friend accidentally wondered into a town where cats are illegal by getting on a traveling puppet show cart. After various scary scenes that would've blown several fuses on the brain of toddler-aged viewers to which the show is targeted, the entire prior happenings are revealed to be a dream. The owner of the puppet show noticed them halfway through the journey and had turned around to return the protagonists to their own town.
* [[OncePerEpisode Every single episode]] of the French animated short WesternAnimation/ErnestLeVampire ends with the title vampire waking up from a CatapultNightmare.
* ''WesternAnimation/DangerMouse'': In the episode "Danger Mouse Saves The World...Again," things kept getting worse until DM was stuck in a room full of bombs and explosives -- then his alarm woke him up.
* The end of Disney WartimeCartoon ''Disney/DerFuehrersFace''.
* This happens a couple of times on ''WesternAnimation/PinkyAndTheBrain'': first in a surreal episode where Brain creates numerous black-and-white duplicates of himself to form a Celtic dance troupe, and later in "You'll Never Eat Food Pellets in This Town Again," which portrays the two mice as actors playing in their own show, which then slides downhill due to ExecutiveMeddling. (The latter, though, ends in an {{Or Was It|ADream}}? moment.)
** Additionally, there was an ''WesternAnimation/{{Animaniacs}}'' segment where Brain dreams that he is the Rockefeller family baby, but the DeliveryStork mistakenly brings him to the Hip Hippos instead.
* Happens in an episode of ''WesternAnimation/CatDog'', where Cat plans to make Dog and Shriek fall for each other, hoping that the Greaser Dogs will thereby leave him alone. The rest of the episode is Cat's dream of what the consequences are: Dog marries Shriek, which causes the Greaser Dogs to move into their house and generally making Cat's life a living hell.
* The better part of episode 20 in ''WesternAnimation/{{Wakfu}}'', which thoroughly confused the non-French-speaking people watching it without subtitles, though it could only have been [[DisneyAcidSequence one other trope]] if not this one.
* ''WesternAnimation/ReBoot'' episode "Number 7". A MindScrew episode which directly parodies ''Series/ThePrisoner'', including a version of that shows opening sequence. Given what happens during the MindScrew, this trope is a [[TropesAreNotBad welcome sight]].
* ''WesternAnimation/AmericanDad'' has one when Stan accidentally crapped himself in a pool party and concocts a scheme to get UsefulNotes/BarackObama to do the same. It was a dream moments before he actually jumps... and craps himself. It's implied that this was not the first time he's done it too. The ending is foreshadowed by the episode title, "An Incident at Owl Creek" (which is a clear homage to "An Occurrence at Owl Creek Bridge", a DyingDream story)
* The ''WesternAnimation/JimmyTwoShoes'' episode "[[PandaingToTheAudience Panda-Monium]]".
* In ''WesternAnimation/TheSmurfs'', Lazy, Brainy, and Greedy enter a paradise world behind a waterfall in the episode "Paradise Smurfed", where its master eventually tries to imprison them for his own purposes. Brainy and Greedy escape, but Lazy doesn't. Fortunately, Lazy finds out that it was all just a dream.
* Parodied by ''WesternAnimation/GIJoeRenegades'': TheStinger of the final episode cuts to the original 1980s ''WesternAnimation/GIJoeARealAmericanHero'' cartoon and reveals that ''Renegades'' was just [[http://www.youtube.com/watch?v=CAznMVCdBcg 80s!Duke's dream]].
* One episode of ''WesternAnimation/YoungJustice'' had the entire cast killed off one-by-one by an unstoppable AlienInvasion. It's revealed at the end that the whole thing was a psychic-induced UnwinnableTrainingSimulation. There was some actual danger to the cast, however: Miss Martian accidentally used her PsychicPowers to [[HolodeckMalfunction turn off the safety features]], forcing ComicBook/MartianManhunter to [[OrpheanRescue enter the dream and free the cast]]. Unlike many instances of this trope, the events have long lasting effects, as it not only tips other characters off to the strength of Megen's abilities, but the cast are shown to be traumatised by the events, as it still feels as they watched all their family and friends die. It also spurs a lot of other development, since it forces the cast to confront lingering issues that were heightened by the apparent life-or-death situation. Superboy realises that his constant comparison between himself and Superman is impinging his moral judgment, Kaldur deals with the fact that his self-sacrificial nature isn't necessarily the best trait in a leader Robin realizes he can never be like Batman and, in truth, doesn't really want to be, M'gnn copes with how she nearly doomed all her friends to being comatose, and Wally tries to ignore that his feelings for Artemis clearly isn't the [[UnresolvedSexualTension bickering annoyance he pretends]].
* Subverted in ''WesternAnimation/TheLooneyTunesShow'', "Parade Float". A series of events involving Daffy using all of Porky's money to buy a yacht ends with him falling off and about to drown. He wakes up and remarks "It was all a dream. That's why I was such a horrible person." Bugs then reminds him that "It wasn't a dream. You really are a horrible person." In fact, Daffy was in a hospital bed, recovering from his near-drowning.
* The 1987 ''{{WesternAnimation/Teenage Mutant Ninja Turtles|1987}}'' episode "Shredderville" had the Turtles supposedly taken to an alternate world where [[ItsAWonderfulPlot they never existed and thus Shredder conquered the world]], only for it to have been a dream that all four of them had at the same time.
* The events of the 2003 ''[[WesternAnimation/TeenageMutantNinjaTurtles2003 TMNT]]'' episode "Bad Day" are simply a form of MindRape conjured by the Foot Mystics.
* The episode "The Binky Show" of ''WesternAnimation/GarfieldAndFriends'' is this. It ends with Binky actually showing up. The announcer tells that Binky was going to do a number of things, including embarrassing Jon by singing to him in a restaurant.
* An episode of ''WesternAnimation/AdventureTime'' set in the Land of Aaa, populated by {{Gender Flip}}ped versions of the show's characters, turns out to literally be FanFiction written by the Ice King.
** At the end of "Puhoy", it's revealed that Finn was dreaming about the world inside Jake's fort the whole time.
* The ''WesternAnimation/IAmWeasel'' episode "I.R. Wild Baboon" turns out be a dream by WesternAnimation/{{Cow|AndChicken}}.
* ''WesternAnimation/TheMrMenShow'' has Mr. Nervous, who goes on wacky (and scary for him, as he is [[ExactlyWhatItSaysOnTheTin Mr. Nervous]]) adventures that turn out to be just his imagination.
* ''WesternAnimation/AngelsFriends'' has Raf and Sulfus both have a dream where they get married.
* Several of the ''WesternAnimation/PrivateSnafu'' cartoons end with Snafu about to face the consequences of his actions (usually his imminent demise) only to wake up. He is then shown mending his ways.
* The ''WesternAnimation/FishHooks'' episode "Pool Party Panic" turns out to be one, and becomes a plot point in the second and third acts of the episode.
* The ''WesternAnimation/ChalkZone'' episode "The White Board", where Rudy dreams that he has a fever during the summer and falls into his white board while inside [=ChalkZone=], eventually entering White Board Zone. Later, he and his friends enter Pencil Zone.
* The ''WesternAnimation/ScoobyDooMysteryIncorporated'' episode "Mystery Solver State Club Finals" turns out to be this.
[[/folder]]

[[folder:Real Life]]
* Some people believe that "real life" is really all just a simulation using technology that doesn't yet exist in real life/this simulation. This is based on the belief that technology is likely to get to the point of being able to perfectly simulate real life while making the subject forget real life while in the simulation and that since once this technology exists it will result in more virtual worlds than the one real one the odds are that this is a simulation and not real life.
** [[http://www.simulation-argument.com/ The Simulation Argument]] postulates that: it is overwhelmingly likely that ''either'' 1) we are living in an "ancestor simulation" created by our descendants ''or'' 2) humanity can never be technologically advanced enough to stage ancestor simulations.
*** Due to the vast material and energy requirements necessary to create a large, real-time, finely-grained simulation, #2 is considered considerably more likely by scientists.
** "Perfectly simulate real life while making the subject forget real life"? Why are we talking about ''VideoGame/TheSims''?
** A counterpoint is the idea that [[http://en.wikipedia.org/wiki/Simulated_reality#Relativity_of_reality "real life" is a meaningless term]], since any reality must be absolute from the perspective of its inhabitants (if we are indeed simulated beings, this is still the highest level of nested realities we can exist in).
* The trope may have arisen from a dream those grieving a deceased loved one often experience. In the dream, the griever learns that the loved one is not dead and that the "death" was nothing but a very bad dream. The griever then wakes up, only to realize that the death really took place and the "miraculous survival" was in fact the dream. Although not every griever experiences this dream, it's common enough to be considered a normal part of the grieving process. Children who experience the dream may not be able to differentiate the dream from reality and therefore may suspect that the deceased person didn't really die (a common fallacy among bereaved children). ''Books'' by reputable scientists have been written on this phenomenon.
** Interestingly, it's possible to have an inversion of that--someone dreams of losing a loved one (or ones), only to wake up. [[CrowningMomentOfHeartwarming Heartwarming]] moments may follow along with a LOT of relief.
* {{Subver|tedTrope}}sion: After Creator/DanielRadcliffe learned that he had gotten the part of Film/HarryPotter, he woke up in the middle of the following night. He woke up his parents to ask them if he'd really gotten the part or if it was a dream.
* The philosophy of existentialism holds that how one views the world is subjective to one's experiences. Existentialists believe that truth is in the eye of the beholder, as is even the existence of the world around us. It's the basis for the scene in ''Film/TheMatrix'' in which the boy in the Oracle's apartment tells Neo, "There is no spoon."
* Confabulation, or false memory syndrome, applies to this trope, as well. Also see this Cracked article: [[http://www.cracked.com/article_18704_5-mind-blowing-ways-your-memory-plays-tricks-you.html 5 Mind Blowing Ways Your Memory Plays Tricks On You]].
* How many times have you been sure what's happening be real, only to wake up? This can be a disappointment or a relief depending on the nature of the dream. In some cases, it ''is'' possible to realize when one's dreaming (lucid dream), and the person may even prefer make the dream last as long as possible.
[[/folder]]

----
[[SelfDemonstratingArticle I had the strangest dream!]] [[TVTropesWillRuinYourLife I was on this horrible website that listed different tropes of media and spent all day there.]]