The edible oyster mushroom Pleurotus ostreatus is one of the most cultivated species worldwide. Morphogenesis associated with the maturation of fruit bodies is controlled by two unlinked loci of sexual compatibility matA and matB with multiple alleles (tetrapolar system of sexual compatibility). Quantitative analysis of the alleles of mating compatibility loci in 17 natural isolates collected in the Moscow region was performed in mon–mon (monokaryons–monokaryon) and di–mon (dikaryon–monokaryon) crossings. Four monokaryotic testers strains which were heteroallelic at both mating type loci were obtained for each of the five natural mushroom isolates by using original technique of sterile spore prints on Petri dishes and mon–mon crossing. Twelve natural isolates were crossed via di-mon mating with the four monokaryotic testers M-38. Genetic analysis of the alleles of sexual compatibility loci in 17 natural isolates revealed multiple alleles at both loci: at least ten alleles at matA locus and eight alleles at matB locus. Structural organization analysis of the matA locus was performed in silico for homokaryotic strains PC9 and PC15 based on the whole-genome sequencing data available at DOE Joint Genome Institute. The matA locus has an extremely divergent structure: there are one copy of the homeodomain gene hd1 and one copy of the hd2 gene in the PC9 strain, whereas the matA locus of the PC15 strain is composed by two copies of hd1.1 and hd1.2 genes (class HD1 homeodomain proteins) and one copy of hd2 gene (class HD2 proteins). Comprehensive analysis of amino acid sequences of HD1 and HD2 homeodomain proteins demonstrated that the proteins have a globular structure with the nuclear localization and contain a variable N-terminus and a more conserved DNA-binding domain with a specific conserved motif WFXNXR in the third ɑ-helix. The results suggest that multiple alleles of the matA locus of sexual compatibility in basidiomycete fungi is achieved due to both different copy number of the coding hd genes within the locus and the variability of the coding gene sequences.