Researchers believe that nightmares may be a way for our brains to process trauma or fear. When we dream, our brain is in a state similar to meditation, where we allow access to parts of our subconscious that we may not be able to during waking hours.