Perceptual inference requires the integration of visual features through recurrent processing, the dynamic exchange of information between higher and lower level cortical regions. While animal research has demonstrated a crucial role of NMDA receptors in recurrent processing, establishing a causal link between NMDA-mediated recurrent processing and human perception has remained challenging. Here, we report two pharmacological studies with randomized, double-blind, crossover designs in which we administered the NMDA antagonist memantine, while collecting human electroencephalography (EEG). We trained and tested EEG classifiers to reflect the processing of specific stimulus features with increasing levels of complexity, namely differences in stimulus contrast, collinearity between local line elements, and illusory surfaces of a Kanizsa triangle. In two experiments involving different participants and visual tasks, we found that memantine selectively affected decoding of the Kanizsa illusion, known to depend on recurrent processing, while leaving decoding of contrast and collinearity largely unaffected. Interestingly, the results from an attentional blink (experiment 1) and task-relevance manipulation (experiment 2) showed that memantine was only effective when the stimulus was attended and consciously accessed. These findings demonstrate that NMDA inhibition selectively affects recurrent processing, especially for attended objects, and thereby provide a crucial step toward bridging animal and human research, shedding light on the neural mechanisms underpinning perceptual inference and conscious perception.