During deep sleep, the body repairs tissues, strengthens the immune system, and consolidates memories. Sleep deprivation can affect everything from mood to cardiovascular health.