Ancient genomes reveal early Andean farmers selected common beans while preserving diversity.