When early Stone Age farmers first moved into Europe from the Near East about 8,000 years ago, they met and began mixing with the existing hunter-gatherer populations. Now genome-wide studies of hundreds of ancient genomes from this period show more hunter-gatherer ancestry in adaptive-immunity genes in the mixed population than would be expected by chance.