Striatal dopamine dysfunction is associated with the altered top-down modulation of pain processing. The dopamine D2-like receptor family is a potential substrate for such effects due to its primary expression in the striatum, but evidence for this is currently lacking. Here, we investigated the effect of pharmacologically manipulating striatal dopamine D2 receptor activity on the anticipation and perception of acute pain stimuli in humans. Participants received visual cues that induced either certain or uncertain anticipation of two pain intensity levels delivered via a CO2 laser. Rating of the pain intensity and unpleasantness was recorded. Brain activity was recorded with EEG and analysed via source localisation to investigate neural activity during the anticipation and receipt of pain. Participants completed the experiment under three conditions, control (Sodium Chloride), D2 receptor agonist (Cabergoline), and D2 receptor antagonist (Amisulpride), in a repeated-measures, triple-crossover, double-blind study. The antagonist reduced an individuals’ ability to distinguish between low and high pain following uncertain anticipation. The EEG source localisation showed that the agonist and antagonist reduced neural activations in specific brain regions associated with the sensory integration of salient stimuli during the anticipation and receipt of pain. During anticipation, the agonist reduced activity in the right mid-temporal region and the right angular gyrus, whilst the antagonist reduced activity within the right postcentral, right mid-temporal, and right inferior parietal regions. In comparison to control, the antagonist reduced activity within the insula during the receipt of pain, a key structure involved in the integration of the sensory and affective aspects of pain. Pain sensitivity and unpleasantness were not changed by D2R modulation. Our results support the notion that D2 receptor neurotransmission has a role in the top-down modulation of pain.