Have you ever woken up from a vivid dream and wondered, What was that all about? Dreams have fascinated humans for thousands of years, inspiring everything from mythology to modern art. But thanks to neuroscience, we now have a better understanding of what’s happening in the brain when we dream—and it’s more complex and fascinating than you might expect.