While it may sound like something out of an 80s sitcom, its quite possible that life was really just a dream. One possible way that your life could be a dream is that your real body is in a state of suspended animation. This could be for a variety of different reasons - youre on an intergalactic space journey or you chose to be suspended to wake up in the future. The dream sequence is just something to keep your mind active and avoid deterioration. Then the question arises, why would anyone want to choose your boring, mundane existence to live in? Perhaps your dream/life is boring and mundane so it wont shock you into waking up, but its interesting enough to keep your mind active while you are asleep. Therefore, when you die or when this reality comes to an end, the real consciousness takes over. What happens when that consciousness dies? Well, that is impossible to guess because your body may not even be human, which leads to another way that life is only a dream. A different example of how this could work, is that your consciousness could just be the dreams of a higher being. For example, in our dreams they are kind of life-like, but there is a lot of really random stuff thrown into it. This theory is that the dreams are that of a higher being with minds that are so well constructed and defined that they are able to create our reality, just through their dreams. The end of our life is them waking up and then the next time they dream up a whole new consciousness and live a different life. How death would work here, is that lets say you die suddenly or unexpectedly, like a brain aneurysm or some violent death, that is just a dream being cut short. The dreamer would be shocked out of their dream, much like you are when something like that happens in your own dreams. You may be thinking this is a load of BS because your consciousness and the world are too complex to just be a dream. However, famed physicist Neil deGrasse Tyson made an excellent (but also terrifying) revelation in a recorded conversation. He pointed out that Our DNA is 2% different than chimpanzees and look how vastly different we are from them. What if a being was 10% or 20% different from us in the same way were different from chimps. Then, maybe with that type of brain power, they can create our reality just through their dreams.