Sleep plays a crucial role in memory consolidation. During different stages of sleep, particularly REM sleep and slow-wave sleep (SWS), the brain actively processes and strengthens memories. REM sleep is associated with the consolidation of procedural and emotional memories, whereas SWS is linked to the consolidation of declarative memories, such as facts and events.