In bacteria, the sodium ion (Na(+)) cycle plays a critical role in negotiating the challenges of an extremely alkaline and sodium-rich environment. Alkaliphilic bacteria that grow optimally at high pH values use Na(+) for solute uptake and flagellar rotation because the proton (H(+)) motive force is insufficient for use at extremely alkaline pH. Only three types of electrically driven rotary motors exist in nature: the F-type ATPase, the V-type ATPase, and the bacterial flagellar motor. Until now, only H(+) and Na(+) have been reported as coupling ions for these motors. Here, we report that the alkaliphilic bacterium Bacillus alcalophilus Vedder 1934 can grow not only under a Na(+)-rich and potassium ion (K(+))-poor condition but also under the opposite condition in an extremely alkaline environment. In this organism, swimming performance depends on concentrations of Na(+), K(+) or Rb(+). In the absence of Na(+), swimming behavior is clearly K(+)- dependent. This pattern was confirmed in swimming assays of stator-less Bacillus subtilis and Escherichia coli mutants expressing MotPS from B. alcalophilus (BA-MotPS). Furthermore, a single mutation in BA-MotS was identified that converted the naturally bi-functional BA-MotPS to stators that cannot use K(+) or Rb(+). This is the first report that describes a flagellar motor that can use K(+) and Rb(+) as coupling ions. The finding will affect the understanding of the operating principles of flagellar motors and the molecular mechanisms of ion selectivity, the field of the evolution of environmental changes and stresses, and areas of nanotechnology.