The medial prefrontal cortex (mPFC), a forebrain region that regulates cognitive function and reward-motivated behaviors, has been implicated in the neuropathological mechanisms of drug addiction and withdrawal. In cocaine-abstinent human addicts, neuronal activity of the mPFC is increased in response to cocaine re-exposure or drug-associated cues. Additionally, repeated cocaine exposure alters the membrane properties and ion channel function of mPFC pyramidal neurons in drug-withdrawn rats, leading to an increased firing in response to excitatory stimuli. Nitric oxide (NO), a diffusible neuromodulator of neuronal excitability, may play a role in initiating and maintaining behavioral effects of psychostimulants. However, the role of NO in the mechanisms by which cocaine affects membrane excitability is not well clarified. In this study, we attempted to determine whether inhibition of neuronal nitric oxide synthase (nNOS) altered the changes induced by repeated cocaine exposure and withdrawal. Visualized whole-cell current clamp recordings in brain slices containing the mPFC of rats administered (once per day for 5days) with either vehicle (10% Cremophor EL in saline 0.9%), cocaine (15mg/kg, i.p.), or cocaine and the nNOS inhibitor 7-NI (50mg/kg, i.p.) were employed. We found that nNOS inhibition prevented cocaine sensitization and the increased membrane excitability of pyramidal cells, evidenced by an increased number of evoked spikes and reductions in inward rectification observed after short-term withdrawal from cocaine. These findings suggest that NO plays an important role in chronic cocaine-induced deregulation of the mPFC activity that may contribute to the development of behavioral sensitization and cocaine withdrawal.