How Caffeine Prevents Sleep. Caffeine primarily prevents sleep by blocking adenosine receptors in the brain. Basically, adenosine is the neurotransmitter that signals the brain that the body is tired and in need of rest. Caffeine fits nicely into these receptors and prevents adenosine from doing its job.