Sleep research has demonstrated that sleep is characterized by periods of different levels of brain activity  People experience dreams during only one of these periods, known as REM (rapid eye movement) sleep  Test subjects who are chronically deprived of REM sleep become irritable during waking life
This shows that REM sleep relieves the stresses of waking life
Other factors being equal, people who normally have shorter periods of REM sleep tend to experience more stress.