There are two sleep stages which are REM and non-REM. NREM sleep comes first and involves three stages. During the final stage of NREM sleep, you’ll get deep, restorative sleep while your brain works, strengthening your immune system, repairing muscles, regenerating cells, and performing other key functions.