The MotB protein of Escherichia coli is an essential component of the flagella that functions together with the MotA protein in transmembrane proton conduction. MotB has a single hydrophobic segment that spans the membrane. In order to determine which parts of the membrane-spanning segment can tolerate the introduction of a large, hydrophobic side chain, single Trp residues were substituted into many consecutive positions in the segment and the effects on function were measured. Trp residues were tolerated at positions near the periplasmic end of the MotB segment but not at positions near the cytoplasmic end. These results are different from what was seen in a similar mutational study of MotA, in that protein Trp residues were tolerated at positions that would be clustered together on one face of each hydrophobic segment if they are alpha-helices [Sharp, L. L., Zhou, J., & Blair, D. F. (1995) Proc. Natl. Acad. Sci. U.S.A. (in press)]. Those results suggested that the membrane-spanning segments of MotA are alpha-helices arranged in a bundle so that each has a face directed toward the lipid. The contrasting results seen with MotB indicate that its relationship to neighboring protein segments is different. Double-Trp substitutions, one each in MotA and MotB, also were studied. Many double substitutions had strongly synergistic effects which imply that the membrane segments of these proteins interact. (ABSTRACT TRUNCATED AT 250 WORDS)