An environment previously associated with cocaine use can elicit cravings, even in the absence of the drug, which may be due to the formation of strong associations between the environment and the drug. These associations can result from motor learning and reinforcing effects of cocaine, and may be mediated in part by ionotropic glutamate receptors in the nucleus accumbens (N.Acc.). To determine whether NMDA receptor activity in the N.Acc. affects the expression of conditioned locomotion, rats were trained using an environment-elicited cocaine-conditioning paradigm. Rats trained to pair a cocaine injection with an environment showed an increased locomotor activity when tested in the drug-paired environment, whereas rats injected with cocaine in their home cages did not exhibit greater locomotion. Significantly greater locomotor activity occurred in trained animals that received an infusion of AP-5, a NMDA receptor antagonist, into the N.Acc. These results suggest that animals trained to associate environmental cues with cocaine become conditioned to this environment. Furthermore, our finding demonstrates that NMDA receptor activation within the N.Acc. modulates cocaine-induced conditioning.