Extinction is a form of inhibitory learning viewed as an essential process in suppressing conditioned responses to drug cues, yet there is little information concerning experiential variables that modulate its formation. Coping factors play an instrumental role in determining how adverse life events impact the transition from casual drug use to addiction. Here we provide evidence in rat that prior exposure to controllable stress accelerates the extinction of cocaine-seeking behavior relative to uncontrollable or no stress exposure. Subsequent experimentation using high-speed optogenetic tools determined if the infralimbic region (IL) of the ventral medial prefrontal cortex mediates the impact of controllable stress on cocaine-seeking behavior. Photoinhibition of pyramidal neurons in the IL during coping behavior did not interfere with subject's ability to control the stressor, but prevented the later control-induced facilitation of extinction. These results provide strong evidence that the degree of behavioral control over adverse events, rather than adverse events per se, potently modulates the extinction of cocaine-seeking behavior, and that controllable stress engages prefrontal circuitry that primes future extinction learning.