Histone variants H2A.Z and H3.3 are epigenetic regulators of memory, but roles of other variants are not well characterized. macroH2A (mH2A) is a structurally unique histone that contains a globular macrodomain connected to the histone region by an unstructured linker. Here we assessed if mH2A regulates memory and if this role varies for the two mH2A-encoding genes, H2afy (mH2A1) and H2afy2 (mH2A2). We show that fear memory is impaired in mH2A1, but not in mH2A2-deficient mice, whereas both groups were impaired in a non-aversive spatial memory task. However, impairment was larger for mH2A1- deficient mice, indicating a preferential role for mH2A1 over mH2A2 in memory. Accordingly, mH2A1 depletion in the mouse hippocampus resulted in more extensive transcriptional de-repression compared to mH2A2 depletion. mH2A1-depleted mice failed to induce a normal transcriptional response to fear conditioning, suggesting that mH2A1 depletion impairs memory by altering transcription. Using chromatin immunoprecipitation (ChIP) sequencing, we found that both mH2A proteins are enriched on transcriptionally repressed genes, but only mH2A1 occupancy was dynamically modified during learning, displaying reduced occupancy on upregulated genes after training. These data identify mH2A as a regulator of memory and suggest that mH2A1 supports memory by repressing spurious transcription and promoting learning-induced transcriptional activation.