Using single-cell epigenomic profiling of immune cells from 110 individuals, researchers show that genetic variation and environmental exposures shape the human immune system through distinct DNA methylation mechanisms. Genetic effects concentrate within gene bodies of memory cells, while environmental exposures primarily remodel regulatory regions in naive immune cells.