The common human epilepsies are associated with distinct patterns of reduced cortical thickness, detectable on neuroimaging, with important clinical consequences. To explore underlying mechanisms, we layered MRI-based cortical structural maps from a large-scale epilepsy neuroimaging study onto highly spatially-resolved human brain gene expression data, identifying >2,500 genes overexpressed in regions of reduced cortical thickness, compared to relatively-protected regions. The resulting set of differentially-expressed genes shows enrichment for microglial markers, and in particular, activated microglial states.Parallel analyses of cell-specific eQTLs show enrichment in human genetic signatures of epilepsy severity, but not epilepsy causation. Post mortem brain tissue from humans with epilepsy shows excess activated microglia. In an experimental model, depletion of activated microglia prevents cortical thinning, but not the development of chronic seizures. These convergent data strongly implicate activated microglia in cortical thinning, representing a new dimension for concern and disease modification in the epilepsies, potentially distinct from seizure control.