Carbonic anhydrases (CAs; EC 4.2.1.1) are metalloenzymes present in mammals with 16 isoforms that differ in terms of catalytic activity as well as cellular and tissue distribution. CAs catalyze the conversion of CO2 to bicarbonate and protons and are involved in various physiological processes, including learning and memory. Here we report that the integrity of CA activity in the brain is necessary for the consolidation of fear extinction memory. We found that systemic administration of acetazolamide, a CA inhibitor, immediately after the extinction session dose-dependently impaired the consolidation of fear extinction memory of rats trained in contextual fear conditioning. d-phenylalanine, a CA activator, displayed an opposite action, whereas C18, a membrane-impermeable CA inhibitor that is unable to reach the brain tissue, had no effect. Simultaneous administration of acetazolamide fully prevented the procognitive effects of d-phenylalanine. Whereas d-phenylalanine potentiated extinction, acetazolamide impaired extinction also when infused locally into the ventromedial prefrontal cortex, basolateral amygdala, or hippocampal CA1 region. No effects were observed when acetazolamide or d-phenylalanine was infused locally into the substantia nigra pars compacta. Moreover, systemic administration of acetazolamide immediately after the extinction training session modulated c-Fos expression on a retention test in the ventromedial prefrontal cortex of rats trained in contextual fear conditioning. These findings reveal that the engagement of CAs in some brain regions is essential for providing the brain with the resilience necessary to ensure the consolidation of extinction of emotionally salient events. Significance Disruption of memories of stressful events may trigger maladaptive responses that are distinctive features of obsessive-compulsive disorders, phobias, posttraumatic stress disorder (PTSD), and generalized anxiety. Drugs available to alleviate these disorders have minimal or inconsistent efficacy. The gold standard treatment, exposure therapy, is based on extinction, which refers to a new memory trace inhibiting original memory retrieval. As not all patients experience beneficial effects of this therapy, drugs potentiating extinction are of utmost importance for improving treatment. Carbonic anhydrases (CAs) are involved in several physiological processes, including memory. The present study indicates that their activation potentiates extinction. Thus, CA activators may have the potential to improve the clinical efficacy of exposure-based treatments of obsessive-compulsive disorders, phobias, generalized anxiety, and PTSD.