Many studies assess epigenetic marks in white blood cells, but it is unclear how much immune factors affect the epigenome. Here, the authors show that fine-scale blood cell composition and cytomegalovirus infection affect the DNA methylome of adults.