How Bacteria Move: Flagella, Pili and Other Structures

Bacteria may be microscopic, but many are remarkably capable of movement. Some swim through water, mucus, or other fluids. Others crawl across surfaces, move in coordinated groups, or change their position by attaching to a surface and pulling themselves forward. A few can move without a conventional locomotor structure at all, using changes in cell shape or the growth and retraction of surface fibers.

The structures responsible for bacterial movement are diverse. Flagella are the best-known swimming apparatus, while pili can help bacteria crawl, pull themselves toward surfaces, or move genetic material between cells. Other mechanisms include surface-associated motility systems, gliding machinery, and movement driven by changes in cell shape.

Understanding how these structures work also helps explain how bacteria find favorable environments, colonize surfaces, form communities, and respond to changes around them.

How bacterial movement differs from animal movement

Bacterial cells are much smaller and structurally simpler than animals, so they move in ways that are unfamiliar from everyday experience. A bacterium does not have muscles, bones, or limbs. Instead, movement is generated by molecular machines embedded in or attached to the cell envelope.

At this scale, ordinary fluid behaves differently from what we experience when moving through air or water. Inertia is extremely weak relative to viscous forces. As a result, a bacterium cannot simply push through the surrounding fluid and coast after stopping its propulsion. It must continuously generate force to keep moving.

Bacteria have evolved several solutions to this problem. Swimming bacteria commonly use rotating flagella. Surface-associated bacteria may use retractable pili or specialized proteins that produce gliding or crawling movements. The exact mechanism depends strongly on the bacterial species and its environment.

Flagella are the main structures for bacterial swimming

A flagellum is a long, slender structure extending from the bacterial cell. Its name comes from the Latin word for whip, but a bacterial flagellum is not simply a flexible tail being waved back and forth. In many bacteria, it acts as a rotary propeller.

A typical bacterial flagellum has three major components: the filament, the hook, and the basal body.

The filament is the long external portion. It is made primarily of a protein called flagellin and forms a helical structure. The hook connects the filament to the motor while providing a flexible joint between them. The basal body is the portion embedded in the cell envelope and contains the machinery that drives rotation.

The motor is powered by an ion gradient across the cell membrane. Depending on the organism, the relevant ions can be protons or sodium ions. The movement of ions through the motor is coupled to rotation of the flagellum.

Because the filament is helical, its rotation generates thrust. The rotating filament pushes against the surrounding fluid, allowing the bacterium to swim.

Where flagella are located matters

Bacteria do not all arrange their flagella in the same way. A cell may have a single flagellum at one end, a tuft of flagella at one pole, flagella distributed over its surface, or flagella at both ends.

These arrangements can influence how the cell swims. A bacterium with a single polar flagellum, for example, may move differently from one covered with many flagella. Some bacteria also alter their swimming behavior by changing the direction or pattern of flagellar rotation.

The arrangement is therefore more than a visual characteristic: it is part of the organism’s particular strategy for generating movement.

How bacteria steer while swimming

Swimming is not simply a matter of turning a motor on. Many bacteria need to determine whether they are moving toward a favorable environment or away from a harmful one.

A well-known strategy is called run-and-tumble motility. In bacteria such as Escherichia coli, bundles of flagella can produce relatively straight periods of swimming called runs. Changes in flagellar rotation disrupt the bundle and cause the cell to reorient, producing a tumble.

The bacterium does not need to know its position on a map. Instead, it can compare conditions over time. If the environment is becoming more favorable, signaling inside the cell can bias its movement toward longer runs and fewer reorientations. If conditions are worsening, more frequent changes in direction can help it search for a better location.

This behavior is part of chemotaxis, the ability to alter movement in response to chemical conditions. Similar sensory systems allow bacteria to respond to other environmental signals, including certain physical or chemical changes.

Not every swimming bacterium uses exactly the run-and-tumble strategy. Different species have different flagellar arrangements, swimming patterns, and sensory systems.

Pili can pull bacteria across surfaces

Pili are thin, hairlike protein structures found on the surfaces of many bacteria. The singular form is pilus. Pili have several functions, and not every pilus is involved in locomotion.

One important example is type IV pili. These structures can extend from the cell, attach to a surface, and then retract. Retraction pulls the bacterium toward the point of attachment, producing a form of surface movement known as twitching motility.

The process is fundamentally different from flagellar swimming. A flagellum produces movement through rotation and thrust in a fluid, whereas a retracting pilus acts more like a temporary attachment point that generates pulling force.

Type IV pili are also involved in processes other than movement, including attachment to surfaces and interactions between cells. Their versatility makes them important to the ability of many bacteria to establish themselves in particular environments.

Pili and flagella are not interchangeable

Because both structures can occur on bacterial surfaces, they are sometimes treated as if they were different versions of the same apparatus. They are not.

Flagella are primarily associated with swimming and are often long enough to extend well beyond the cell. Their characteristic motion comes from a molecular rotary motor.

Pili are generally much thinner. Different types serve different purposes, including attachment, DNA transfer, and surface motility. Type IV pili can repeatedly extend and retract, allowing a bacterium to move across a surface.

This distinction is important because a bacterium may use several surface structures at once, with each performing a different job.

Some bacteria glide without conventional flagellar propulsion

Gliding motility refers broadly to movement across a surface without the obvious rotation of external flagella. Several unrelated bacterial groups have evolved different molecular mechanisms for producing this kind of movement.

In some bacteria, motor proteins move along internal tracks or interact with structures associated with the cell envelope. Their activity can generate forces that are transmitted to the surrounding surface. In other organisms, movement involves the secretion or controlled movement of substances at the cell surface.

There is no single universal “gliding motor.” The term describes a type of movement rather than one particular molecular mechanism.

Some bacteria can also move by sliding, in which growth and physical interactions with the surface or neighboring cells contribute to spreading. Because these mechanisms vary substantially among species, bacterial motility is better understood as a collection of solutions to the same physical problem than as one standard system.

Spirochetes use an unusual internal flagellar system

A particularly distinctive form of bacterial movement occurs in spirochetes, spiral-shaped bacteria that include medically important species.

Instead of placing their flagella on the outside in the usual way, spirochetes have flagellar filaments located within the space between the cell’s inner and outer membranes. These are often called periplasmic flagella or axial filaments.

When these internal filaments rotate, they interact with the surrounding cell structures and cause the entire cell to flex and twist. The result is a characteristic corkscrew-like movement.

This arrangement is especially useful in viscous environments, where conventional swimming can be difficult. The movement of spirochetes illustrates an important point about bacterial motility: the same basic requirement—generating force against the environment—can be solved through very different physical designs.

Bacterial movement can involve the whole cell surface

Not all movement depends on a single obvious appendage. Some bacteria use specialized proteins distributed along the cell envelope to generate forces against a surface.

Myxobacteria, for example, are known for complex surface motility and coordinated behavior. Their movement can involve multiple systems, including mechanisms associated with cell-surface structures and adhesion. Rather than behaving as isolated swimmers, these bacteria can move across surfaces as populations and interact extensively with neighboring cells.

Other bacteria use combinations of adhesion, surface forces, and changes in cell shape. In these cases, observing a bacterium move does not necessarily reveal which molecular system is responsible; similar-looking movement can arise from very different mechanisms.

Why bacteria move

Movement is useful only when it helps a bacterium survive or reproduce. One major benefit is the ability to reach a more favorable environment.

A swimming bacterium can move toward nutrients or away from harmful chemicals. In a host, motility may help certain bacteria navigate through fluids or reach particular tissues and surfaces. In soil and aquatic environments, movement can help cells encounter nutrients, hosts, or other organisms.

Surface motility has different advantages. It can help bacteria spread across a surface, find suitable attachment sites, or occupy new areas of a microbial community.

Motility can also contribute to biofilm development. A biofilm is a structured community of microorganisms attached to a surface and embedded in material they produce. Motility is not required for every biofilm, but movement and surface attachment can influence how some bacterial populations establish and organize these communities.

Movement and attachment often work together

It is tempting to think of movement and attachment as opposing behaviors: a bacterium either moves or stays put. In reality, many bacteria switch between these states.

A bacterium may swim through liquid, encounter a surface, attach using surface proteins or pili, and then change its behavior. Once established, it may spread across the surface or become part of a growing community.

This flexibility allows bacteria to respond to changing conditions rather than committing to one mode of existence. Motility structures can therefore have roles that extend beyond simply getting a cell from one location to another.

What determines how a bacterium moves?

A bacterium’s movement depends on more than its appendages. The physical properties of the environment are important.

In a thin, watery environment, flagellar swimming can be effective. In thicker fluids or on solid surfaces, other mechanisms may provide an advantage. Cell shape also matters because it affects how a bacterium interacts with its surroundings.

Chemical sensing influences movement as well. A bacterium that can detect a favorable nutrient gradient can alter its swimming behavior to increase the likelihood of reaching a useful region. Other sensory systems allow bacteria to respond to light, oxygen, temperature, osmotic conditions, or other environmental cues, depending on the species.

The result is a highly integrated system: sensors detect conditions, internal signaling changes the activity of molecular motors, and those motors alter the cell’s movement.

Motility structures are molecular machines

The most striking feature of bacterial motility is not simply that bacteria can move, but that they do so with extraordinarily small molecular machines.

A flagellar motor converts an ion gradient into mechanical rotation. A pilus system can repeatedly assemble a filament, attach it to a target, and retract it to generate force. Other motility systems coordinate proteins distributed throughout the cell envelope.

These machines are built from proteins whose production and activity are genetically regulated. Their operation can also be adjusted in response to environmental signals.

Bacterial movement is therefore not a simple mechanical reflex. It is the visible result of molecular structures, energy conversion, sensory systems, and cellular regulation working together.

A quick comparison of major bacterial motility structures

Structure or mechanismTypical movementBasic principle
FlagellaSwimming through fluidRotation of a helical filament produces thrust
Type IV piliTwitching across surfacesExtension, attachment, and retraction generate pulling forces
Periplasmic flagellaCorkscrew-like movementInternal flagellar rotation bends and propels the cell
Gliding systemsMovement across surfacesSpecialized surface or internal machinery generates directed force
Sliding and related surface spreadingPopulation or cell-surface movementGrowth, surface interactions, adhesion, and physical forces contribute to spreading

These categories are useful for understanding the major strategies, but they should not be treated as rigid boxes. Bacterial motility systems are diverse, and some species possess more than one mechanism.

The key idea: bacteria use different machines for different environments

There is no single way for a bacterium to move. Flagella are highly effective for swimming, pili can provide powerful surface traction, spirochetes use internal flagella to produce corkscrew motion, and other bacteria employ specialized systems for gliding or spreading across surfaces.

The common principle is that bacteria convert cellular energy into mechanical force. They then use that force in a way suited to their environment—pushing against fluid, pulling against a surface, bending the cell, or coordinating movement with neighboring cells.

That combination of molecular engineering and environmental sensing is what makes bacterial motility so diverse. A cell only a few micrometers long can detect changes around it, adjust its behavior, and actively relocate to conditions that improve its chances of survival.

Looking For Something Else?