At the scale of an E. coli cell, water behaves like treacle. The Reynolds number — the ratio of inertial to viscous forces — is around one ten-thousandth of a human swimmer's, so a cell that stops pushing stops moving almost immediately. There is no gliding and no coasting. Every micron has to be paid for continuously, and the cell pays by turning a wheel.
A wheel is a strange thing to find in a cell. Biology elsewhere is built out of bending, contracting and polymerising, all driven by ATP. This motor does none of those. It rotates, it runs on an ion gradient, and it is small enough that the whole assembly — motor, drive shaft, propeller — would fit many times inside one wavelength of visible light.

The machine, disassembled
The flagellum has three modules, and the division of labour is the reason it is such a good teaching object.
The motor sits in the cell envelope. Its rotor is a stack of rings: an MS ring made of FliF embedded in the cytoplasmic membrane, and a C ring hanging beneath it made of FliG, FliM and FliN. The C ring is both the rotating part and the gearbox; the proteins in it are what the torque is applied to and what determines which way the thing spins.
The hook is a short curved polymer that acts as a universal joint, transmitting torque from an axis inside the cell to a filament outside it at whatever angle the filament happens to be.
The filament is the propeller: a helix assembled from tens of thousands of copies of a single protein, flagellin. It is not a whip; it corkscrews.
Around the rotor sit the stators, roughly a dozen of them at full power, each one a complex of MotA and MotB. Each stator is anchored to the peptidoglycan layer through the periplasmic domain of MotB, and each one contains a proton channel. The stator is the part that converts the ion gradient into torque; the rotor is the part that gets pushed.
The numbers are the argument: about thirty proteins, a couple of hundred subunits, megadaltons of mass, built by a cell with no machinery to machine a part.
Why protons
Textbook cells run on ATP, so the natural assumption is that a motor would hydrolyse ATP. The flagellar motor does not. It runs on the proton motive force: the combined effect of a pH difference across the cytoplasmic membrane and an electrical potential across it. Bacteria spend ATP pumping protons out; the motor lets them back in.
The evidence for this is old and clean. Collapse the proton gradient with a chemical uncoupler and the motor stops immediately, even though the cell is still full of ATP. Restore the gradient and it starts again. Whatever the motor is burning, it is not the cell's energy currency.
The coupling is direct and countable. In the cryo-electron microscopy structures published since 2020, the stator is a pentamer of MotA with a dimer of MotB, and the conserved aspartate in MotB that lines the channel is the proton-binding site. Each binding event rotates the MotA pentamer by about thirty-six degrees, a tenth of a turn; ten events complete one stator revolution, each coupled to a discrete push against the rotor. Roughly twelve hundred protons pass through the ring per turn of the filament, and the conserved arginine and glutamate on MotA with the aspartate on MotB are what keep the stepping directional rather than thermal jitter.
Switching, and behaviour without a brain
t-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;" data-page-node-id="JkYNuB6wQM8OA73kVxMqnu" data-dm-ref="23">The C ring is what lets the motor reverse at all. By default it turns counterclockwise, and on a peritrichous cell like E. coli that wraps the several filaments into a single bundle behind the cell, pushing it forward in a smooth run.
When the chemotaxis system phosphorylates the response regulator CheY, CheY-P binds FliM in the C ring and the ring shifts conformation. The motor reverses. Each filament turns the other way, the bundle flies apart, and the cell tumbles in place, pointing somewhere new. Then the phosphate comes off CheY and the bundle re-forms.
Run, tumble, run. There is no map and no memory of where food was; there is a bias. Moving up a gradient of attractant lowers the probability of a tumble, and a random walk becomes a drift — behaviour from a feedback loop with no representation of the world inside it.
Built from the tip
The assembly problem is worse than the control problem. The filament is outside the cell and longer than the cell, so it cannot be built at the base and pushed out; there is nowhere for it to go through the membrane.
So the cell builds it from the far end. Flagellin subunits are made in the cytoplasm, fed into an export apparatus at the base of the motor, and travel up a narrow channel running the length of the growing filament to the distal tip, where they add on. The channel is part of the structure.
The timing runs on a checkpoint I find unreasonably elegant. The late flagellar genes need an alternative sigma factor, held inactive in the cytoplasm by an anti-sigma factor called FlgM. FlgM is itself a substrate for the export apparatus, but it can only leave once the hook is complete and the channel is open. Assembly of the hook therefore releases the brake on filament synthesis. The structure builds itself in the right order because the order is enforced by what can physically exit the cell.
The immune system reads the propeller
Flagellin is one of the most conserved proteins in bacteria and one of the most recognisable to animals. Mammalian innate immunity has a dedicated receptor for it, TLR5, on the surface of epithelial and immune cells, and a cell that detects flagellin concludes that a motile bacterium is present.
That cuts both ways for a pathogen. Motility lets it reach tissue it could not otherwise colonise, but a flagellum is also a large, invariant, extracellular structure flying a banner the host has evolved to see, which is one reason some pathogens switch flagellar expression off once they are inside a host.
What you can and cannot see on a slide
A flagellum is about twenty nanometres across, below the resolution of a light microscope, so the standard preparation stains around the structure rather than the structure. Leifson's method uses a mordant that deposits on the filament and thickens it enough to be seen, leaving a ghostly tangle that shows number and arrangement: one polar filament, a tuft, or a fringe all round.
The functional test is often more informative. Stab a motile strain into soft agar and it swims outward, producing a diffuse cloud; a non-motile strain grows only along the needle track.
The structure itself needs electron microscopy, and cryo-electron tomography of intact cells is where the stator ring, the C ring and the export apparatus became visible as parts rather than as a list of gene products.
A flagellum is a case where the parts list and the picture have to be learned together: the names mean little until the rings are visible in place. Wwai pairs a scanned slide library with an AI lab partner, so bacterial and tissue specimens can be worked through at high magnification while the mechanism stays attached to a structure.