Dreaming may act as a form of overnight therapy by easing painful memories, according to a new study. The study found that the part of the brain that handles emotions becomes less active during REM sleep, and people reported that emotionally provocative images they had viewed had less of an emotional impact after sleeping. This suggests REM sleep helps the brain process difficult experiences. However, sleep is not a cure-all for emotional stress, and dreaming alone will not make all bad memories disappear.