FliL is an essential component of the flagellar machinery in some bacteria, but a conditional one in others. The conditional role is for optimal swarming in some bacteria. During swarming, physical forces associated with movement on a surface are expected to exert a higher load on the flagellum, requiring more motor torque to move. Bacterial physiology and morphology are also altered during swarming to cope with the challenges of surface navigation. FliL was reported to enhance motor output in several bacteria and observed to assemble as a ring around ion-conducting stators that power the motor. In this study we identify a common new function for FliL in diverse bacteria - Escherichia coli, Bacillus subtilis and Proteus mirabilis . During swarming, all these bacteria show increased cell speed and a skewed motor bias that suppresses cell tumbling. We demonstrate that these altered motor parameters, or 'motor remodeling', require FliL. Both swarming and motor remodeling can be restored in an E. coli fliL mutant by complementation with fliL genes from P. mirabilis and B. subtilis , showing conservation of swarming-associated FliL function across phyla. In addition, we demonstrate that the strong interaction we reported earlier between FliL and the flagellar MS-ring protein FliF is confined to the RBM-3 domain of FliF that links the periplasmic rod to the cytoplasmic C-ring. This interaction may explain several phenotypes associated with the absence of FliL.