While we sleep, our bodies are inactive but our brains stay very active. Sleep affects daily functioning and physical and mental health in many ways that researchers are just beginning to understand.