The body alternates between two main phases of sleep during the night: rapid eye movement (REM), when body and brain activity promote dreams, and non-rapid eye movement (NREM), when the muscles and brain rest.