The b mating-type locus of the fungal plant pathogen Ustilago maydis encodes two multiallelic gene products, bE and bW, that control the formation and maintenance of the infectious cell type. Dimerization via the N-terminal regions of bE and bW proteins encoded by alleles of different specificities establishes a homeodomain-containing transcription factor. The bE and bW products encoded by alleles of like specificities fail to dimerize. We constructed sets of chimeric alleles for the bE1 and bE2 genes and for the bW1 and bW2 genes to identify sequences that control specificity. The mating behavior of strains carrying chimeric alleles identified three classes of specificity: b2 (class I), specificity different from either parental type (class II), and b1 (class III). Crosses between strains carrying bE and bW chimeric alleles identified two short blocks of amino acids that influence specificity and that are located in the N-terminal variable regions of the b proteins. Comparisons of pairs of chimeric alleles encoding polypeptides differing in specificity and differing at single amino acid positions identified 16 codon positions that influence the interaction between bE and bW. Fifteen of these positions lie within the blocks of amino acids identified by crosses between the strains carrying chimeric alleles. Overall, this work provides insight into the organization of the regions that control recognition.Recognition mediated by protein-protein interactions plays a fundamental role in many biological processes. Well-characterized examples include antibody-antigen interactions (8, 9, 23), ligand-receptor binding (22,35), and the establishment and maintenance of tissue integrity by cadherins (19). The proteins involved in sexual reproduction and incompatibility in fungi provide relatively simple examples of determinants of self versus nonself recognition. In this paper, we describe a molecular genetic approach to identify the determinants of recognition for the proteins encoded by the b mating-type locus of the fungal corn pathogen Ustilago maydis.U. maydis is commonly found in nature as black diploid teliospores on infected corn plants (6). The teliospores germinate, and meiosis occurs to produce haploid, yeast-like progeny. Nonself recognition between compatible haploid mating partners is a prerequisite to the establishment of an infectious, dikaryotic cell type, and the genes at the a and b mating-type loci are considered pathogenicity factors (reviewed in references 2 and 18). The a locus, with alternate specificities a1 and a2, encodes pheromones and pheromone receptors and controls recognition of mating partners at the level of cell fusion (3,11,31). The b locus controls the formation and maintenance of the infectious cell type after cell fusion has occurred. If the cells participating in mating have different specificities (nonself) at the b locus, a vigorous, straight dikaryotic filament is formed and this cell type will be infectious. In contrast, mating partners that carry b sequences of like specificities ...