Generalization expands learned experiences to flexible guide behavior when conditions change. A basic physical unit of memory storage and expression in the brain are sparse, distributed groups of neurons known as ensembles (i.e., the engram). The infralimbic (IL) subregion of the ventral medial prefrontal cortex plays a key role in modulating conditioned defensive responses. How IL neuronal ensembles established during learning contribute to generalized responses is unknown. In this set of experiments, generalization was tested in male and female mice by presenting a novel, ambiguous, tone generalization stimulus following Pavlovian defensive (fear) conditioning. The first experiment was designed to test a role for IL in generalization using chemogenetic manipulations. Results show IL bidirectionally regulates defensive behavior. IL silencing promotes a switch in defensive state from vigilant scanning to generalized freezing, while IL stimulation reduced freezing in favor of scanning. Leveraging activity-dependent tagging technology (ArcCreERT2 x eYFP system), a neuronal ensemble, preferentially located in IL superficial layer 2/3, was associated with the generalization stimulus. Remarkably, in the identical discrete location, fewer reactivated neurons were associated with the generalization stimulus at the remote timepoint (30 days) following learning. When an IL neuronal ensemble established during learning was selectively chemogenetically silenced, generalization increased. Conversely, IL neuronal ensemble stimulation reduced generalization. Overall, these data identify a crucial role for IL in suppressing generalized responses. Further, we uncovered an IL neuronal ensemble, formed during learning, functions to later attenuate the expression of generalization in the presence of ambiguous threat stimuli.