A lack of sleep can impair immune function, leaving your body more susceptible to disease and infection.