Good sleep is necessary for physical and mental health. For example, sleep loss impairs immune function, and sleep is altered during infection. Immune signalling molecules are present in the healthy brain, where they interact with neurochemical systems to contribute to the regulation of normal sleep. Animal studies have shown that interactions between immune signalling molecules (such as the cytokine interleukin 1) and brain neurochemical systems (such as the serotonin system) are amplified during infection, indicating that these interactions might underlie the changes in sleep that occur during infection. Why should the immune system cause us to sleep differently when we are sick? We propose that the alterations in sleep architecture during infection are exquisitely tailored to support the generation of fever, which in turn imparts survival value.