Neuronal activity is critical for adaptive circuit remodeling but poses an inherent risk to the stability of the genome across the long lifespan of post-mitotic neurons1-5. Whether neurons have acquired specialized genome protection mechanisms that enable them to withstand decades of potentially damaging stimuli during periods of heightened activity is not known. Here we identify an activity-dependent DNA repair mechanism via a new form of the NuA4/TIP60 chromatin modifier that assembles in activated neurons around the inducible, neuronal-specific transcription factor NPAS4. We purify this complex directly from the brain and demonstrate its functions in eliciting activity-dependent changes to neuronal transcriptomes and circuitry. By identifying the landscape of activity-induced DNA double-strand breaks in the brain, we show that the NPAS4:NuA4 complex binds to recurrently damaged regulatory elements and recruits additional DNA repair machinery to stimulate their repair. Gene regulatory elements bound by the NPAS4:NuA4 complex are partially protected from age-dependent accumulation of somatic mutations. Impaired NPAS4:NuA4 signaling leads to a cascade of cellular defects including dysregulated transcriptional responses to activity, loss of control over neuronal inhibition, and genome instability, culminating in reduced organismal lifespan. In addition, mutations in several components of the NuA4 complex are reported to lead to neurodevelopmental disorders and autism. Together, these findings identify a neuronal-specific complex that couples neuronal activity directly to genome preservation and whose disruption may contribute to developmental disorders, neurodegeneration and aging.