REM sleep is affected by a variety of physical and mental conditions, including stress, anxiety, depression, sleep deprivation, and certain medications. Additionally, substance abuse, nutrition, and even exercise can impact the quality and duration of REM sleep.