Nontypeable Haemophilus influenzae is a commensal that frequently causes otitis media and respiratory tract infections. The lex2 locus encodes a glycosyltransferase that is phase variably expressed and contributes to the significant intrastrain heterogeneity of lipopolysaccharide (LPS) composition in H. influenzae. In serotype b strains, Lex2B adds the second -glucose in the oligosaccharide extension from the proximal heptose of the triheptose inner core backbone; this extension includes a digalactoside that plays a role in resistance of the bacteria to the killing effect of serum. As part of our studies of the structure and genetics of LPS in nontypeable H. influenzae, we show here that there are allelic polymorphisms in the lex2B sequence that correlate with addition of either a glucose or a galactose to the same position in the LPS molecule across strains. Through exchange of lex2 alleles between strains we show that alteration of a single amino acid at position 157 in Lex2B appears to be sufficient to direct the alternative glucosyl-or galactosyltransferase activities. Allelic exchange strains express LPS with altered structure and biological properties compared to the wild-type LPS. Thus, Lex2B contributes to both inter-and intrastrain LPS heterogeneity through its polymorphic sequences and phase-variable expression.Haemophilus influenzae is a gram-negative bacterium that is an obligate commensal in the human respiratory tract. This organism, however, has a propensity to spread contiguously, and the predominant unencapsulated (nontypeable H. influenzae [NTHi]) strains can cause diseases such as respiratory tract infections and otitis media (OM). Lipopolysaccharide (LPS), the major cell surface glycolipid, significantly influences hostmicrobe interactions and is a virulence determinant. From the well-conserved triheptose-containing inner core backbone, oligosaccharides (OS) comprising mainly hexose sugars and various nonsugar substituents extend, and these OS vary in composition between strains (31, 32, 36). The number of sugars and substituent groups comprising these OS can vary at a high frequency within individual strains, and the reversible loss and gain of epitopes is called phase variation (30). Phase variation of LPS in H. influenzae is mediated by switching in the expression of LPS-specific loci that contain tetranucleotide repeats (microsatellites) in the 5Ј end of the reading frame (17,19,21,38). These repeat tracts undergo mutation via DNA slippage during replication (25), leading to loss or gain of repeat units that place the reading frame in or out of frame with the translational initiation codon. Thus, depending on the number of tetranucleotide units in the tract, each phase-variable gene can be correctly translated ("on") or not correctly translated ("off"). For any H. influenzae strain having multiple phasevariable loci, a population of cells can simultaneously generate a range of LPS glycoforms, allowing the organism to adapt to different microenvironments of the host and helping it escape ...