The locus coeruleus is a small, compact nucleus located in the brainstem that plays a crucial role in regulating sleep, arousal, and the stress response. It is the main source of norepinephrine (noradrenaline) in the central nervous system and is involved in various cognitive and physiological processes.