Realizing your in a dream is the gateway to lucid dreaming. If you can manage to do that, and not wake up, then you can sometimes get a semblance of control over your dream and make it do pretty much whatever you want. It's pretty awesome when it works but it's really hard to stay asleep at that...