The Bacillus subtilis gene encoding CheB, which is homologous to Escherichia coli CheY, the regulator of flagellar rotation, has been cloned and sequenced. It has been verified, using a phage T7 expression system, by showing that a small protein, the same size as E. coli CheY, is actually made from this DNA. Despite the fact that the two proteins are 36% identical, with many highly conserved residues, they appear to play different roles. Unlike CheY null mutants, which swim smoothly, CheB null mutants tumble incessantly. However, a CheB point mutant swims smoothly, even in the presence of a plasmid bearing cheB, which restores the null mutants to wild type. Expression of CheB in wild type B. subtilis makes the cells exhibit more tumbling. Since both absence of CheB and presence of high levels of CheB cause tumbling, CheB appears to be required, in certain circumstances, for both smooth swimming and tumbling. Expression in wild type E. coli makes the cells smooth swimmers and strongly inhibits chemotaxis.