Contextual and sensory information, goals, and the motor plan to achieve them are integrated in the nucleus accumbens (NA). Although this integration needs flexibility to operate in a variety of environments, models of NA function rarely consider changing behavioral states. Here, intracellular recordings in anesthetized rats revealed rapid changes in the synchronization between NA up states and prefrontal cortical (PFC) local field potentials (LFPs). The synchronization of the NA with the PFC and ventral hippocampus also varied over time in awake rats, depending on the behavioral state of the animal: NA LFPs followed hippocampal theta rhythms during spatial exploration, but not during an operant task when they were instead synchronized with slower PFC rhythms. These data indicate that the ability of the NA to follow cortical inputs can rapidly change, allowing for a mechanism that could select an optimal response for a given behavioral condition