And while the precise function of REM sleep and dreaming is still not entirely clear, researchers have established a clear correlation between sleep-related illnesses and problems such as hypertension, stroke, congestive heart failure, depression and an overall decreased quality of life.