Distinguishing between cues predicting safety and danger is crucial for survival. Impaired learning of safety cues is a central characteristic of anxiety-related disorders. Despite recent advances in dissecting the neural circuitry underlying the formation and extinction of conditioned fear, the neuronal basis mediating safety learning remains elusive. Here, we showed that safety learning reduces the responses of paraventricular thalamus (PVT) neurons to safety cues, while activation of these neurons controls both the formation and expression of safety memory. Additionally, the PVT preferentially activates prefrontal cortex somatostatin interneurons (SOM-INs), which subsequently inhibit parvalbumin interneurons (PV-INs) to modulate safety memory. Importantly, we demonstrate that acute stress impairs the expression of safety learning, and this impairment can be mitigated when the PVT is inhibited, indicating PVT mediates the stress effect. Altogether, our findings provide insights into the mechanism by which acute stress modulates safety learning.