The bacterial flagellar motor is a rotary nanomachine powered by proton (or sodium ion) flow across the inner membrane. About 30–40 stator units each generate torque via proton translocation.