Caffeine primarily acts as an adenosine receptor antagonist. Adenosine is a neurotransmitter that promotes sleep and relaxation by binding to its receptors. By blocking these receptors, caffeine increases neuronal firing and the release of other neurotransmitters like dopamine and norepinephrine. This leads to increased alertness and reduced fatigue.