In ascomycetes, mating compatibility is regulated by the mating-type locus, MAT1. The objectives of this study were to identify and sequence genes at the MAT1 locus in the grape powdery mildew fungus, Erysiphe necator, to develop a PCR-based marker for determining mating type in E. necator, and to develop degenerate primers for amplification by PCR of conserved regions of mating-type idiomorphs in other powdery mildew fungi. We identified MAT1- 2- 1 of the MAT1- 2 idiomorph in E. necator based on the homologous sequence in the genome of Blumeria graminis f. sp. hordei and we found MAT1- 1- 1 and MAT1- 1- 3 of the MAT1- 1 idiomorph from transcriptome sequences of E. necator. We developed and applied a reliable PCR-based multiplex marker to confirm that genotype correlated with mating phenotype, which was determined by pairing with mating-type tester isolates. Additionally, we used the marker to genotype populations of E. necator from different Vitis spp. from throughout the USA. We found both mating types were present in all populations and mating-type ratios did not deviate from 1:1. The mating-type genes in E. necator are similar to those of other Leotiomycetes; however, the structure of the MAT1 locus in E. necator, like the MAT1- 2 idiomorph of B. graminis, is markedly different from other ascomycetes in that it is greatly expanded and may contain a large amount of repetitive DNA. As a result, we were unable to amplify and sequence either idiomorph in its entirety. We designed degenerate primers that amplify conserved regions of MAT1- 1 and MAT1- 2 in E. necator, Podosphaera xanthii, Microsphaera syringae, and B. graminis, representing the major clades of the Erysiphales. These degenerate primers or sequences obtained in this study from these species can be used to identify and sequence MAT1 genes or design mating-type markers in other powdery mildew fungi as well.