Sleep is an important part of our lives. It improves physical and mental health. Sleep happens in stages, including REM sleep and non-REM sleep. Many factors affect your sleep quality, including food and room temperature. If you think you may have a sleep problem, talk to a healthcare provider. Many treatments are available for sleep disorders.