If you wake up during the REM (rapid eye movement sleep) stage, you're more likely to remember about the dream.