The first thing to know is that it's not a sign that the world is actually ending so there's no need to be fearful of the dream. However, it may very likely be a sign that something in your world is about to come to an end, via Cosmopolitan. That might be a relationship, a job, or other important areas in your life, and your brain may be trying to prepare you for an intense switch.
As a result of internally knowing that an end is on the horizon, you may be having anxiety and a cascade of emotions surrounding the upcoming change. Even if you're not fully aware of any impending end, you may be subconsciously processing confusing thoughts and internal notions through your dreams.
Another explanation is that you may also be gearing up in your life to take on a new role and close a large chapter, via Dreaming and Sleeping. This may include going to college, graduating and getting a job, getting married and leaving the single life behind, or even getting divorced.