ObjectiveAnimal studies established that the locus coeruleus (LC) plays important roles in sleep and wakefulness regulation. Whether it contributes to sleep variability in humans is not yet established. Here, we investigated if thein vivoactivity of the LC is related to the variability in the quality of Rapid Eye Movement (REM) sleep.MethodsWe assessed the LC activity of 34 healthy younger (∼22y) and 18 older (∼61y) individuals engaged in bottom-up and top-down cognitive tasks using 7-Tesla functional Magnetic Resonance Imaging (fMRI). We further recorded their sleep electroencephalogram (EEG) to evaluate associations between LC fMRI measures and REM sleep EEG metrics.ResultsTheta oscillation energy during REM sleep was positively associated with LC response in the top-down task. In contrast, REM sleep theta energy was negatively associated with LC activity in older individuals during the bottom-up task. Importantly, sigma oscillations power immediately preceding a REM sleep episode was positively associated with LC activity in the top-down task.InterpretationLC activity during wakefulness was related to REM sleep intensity and to a transient EEG change preceding REM sleep, a feature causally related to LC activity in animal studies. The associations depend on the cognitive task, suggesting that a balanced level of LC tonic activity during wakefulness is required for optimal expression of REM sleep. The findings may have implications for the high prevalence of sleep complaints reported in aging and for disorders such as insomnia, Alzheimer’s, and Parkinson’s disease, for which the LC may play pivotal roles through sleep.