Peruvian maize exhibits abundant morphological diversity, with landraces cultivated from sea level (sl) up to 3,500 m above sl. Previous research based on morphological descriptors, defined at least 52 Peruvian maize races, but its genetic diversity and population structure remains largely unknown. Here, we used genotyping-by-sequencing (GBS) to obtain single nucleotide polymorphisms (SNPs) that allow inferring the genetic structure and diversity of 423 maize accessions from the genebank of Universidad Nacional Agraria la Molina (UNALM) and Universidad Nacional Autónoma de Tayacaja (UNAT). These accessions represent nine races and one sub-race, along with 15 open-pollinated lines (purple corn) and two yellow maize hybrids. It was possible to obtain 14,235 high-quality SNPs distributed along the 10 maize chromosomes of maize. Gene diversity ranged from 0.33 (sub-race Pachia) to 0.362 (race Ancashino), with race Cusco showing the lowest inbreeding coefficient (0.205) and Ancashino the highest (0.274) for the landraces. Population divergence (F