Bacterial Pili: Structure, Function, and Types

Uncover the fundamental components and multifaceted roles of bacterial surface appendages crucial for microbial survival and interaction dynamics.

Bacterial pili are hair-like protein filaments that protrude from the surfaces of both Gram-negative and Gram-positive bacteria, and they do far more than give microbes a fuzzy appearance. These structures enable bacteria to stick to host tissues, pull themselves across surfaces, swap DNA with neighbors, form tough biofilms, and even conduct electricity. Several distinct classes of pili exist, each built by a different assembly pathway and tuned to different tasks, making them some of the most versatile molecular tools in the microbial world.

How Pili Are Built Depends on the Bacterium

One of the first things that separates pili into categories is how the bacterium assembles them. At least six recognized assembly pathways exist, including chaperone-usher pili, type IV pili, type V pili, curli fibers, conjugative pili, and sortase-mediated pili. The pathway a bacterium uses is tightly connected to whether it has a Gram-negative (double membrane) or Gram-positive (thick cell wall) envelope, because the engineering challenge of anchoring a long filament differs between those two architectures.

In Gram-negative bacteria, pili typically form when individual protein subunits, called pilins, stack together through noncovalent interactions, generating a hollow or helical shaft that extends outward through the outer membrane. Gram-positive bacteria, discovered more recently to carry pili, take a fundamentally different approach: their pilin subunits are linked together by covalent bonds forged by a dedicated enzyme called sortase. This contrast matters because it affects pilus flexibility, stability, and how easy the structures are to target with drugs or vaccines.

Chaperone-Usher Pili and the Grip on Host Cells

The most widespread pilus system in Gram-negative bacteria is built through the chaperone-usher pathway. In this system, pilin subunits are escorted one at a time across the inner membrane by a chaperone protein that prevents them from misfolding. They are then delivered to an outer-membrane protein called the usher, which serves as both an assembly platform and a channel through which the growing pilus is threaded to the cell surface.

The best-known product of this pathway is the type 1 pilus, carried by uropathogenic Escherichia coli (UPEC), the bacterium responsible for most urinary tract infections. At the tip of each type 1 pilus sits a protein called FimH, which binds to sugar molecules called mannose on the surface of bladder cells. That binding does more than just glue the bacterium in place. Research has shown that FimH triggers host cell signaling cascades that actually lead the bladder cell to internalize the bacterium, meaning UPEC can hide inside host cells rather than remaining exposed on the tissue surface. Once inside, bacteria can form dense intracellular communities that are shielded from antibiotics and immune defenses.

FimH is not unique to E. coli. Klebsiella pneumoniae, which causes a large share of non-E. coli UTIs, also carries type 1 pili tipped with a mannose-binding FimH adhesin that plays a similar role in infection. Type 1 pili also help bacteria gain a foothold during biofilm formation on surfaces: early genetic studies confirmed that FimH-bearing pili are required for the initial attachment step when E. coli colonizes abiotic and biological surfaces.

Catch Bonds and the Physics of Holding On

If pili were simple sticky threads, urine flow in the bladder would wash bacteria away. Instead, type 1 pili use a counterintuitive trick called a catch bond. Under low or zero shear force, FimH sits in a relaxed, low-affinity state, gripping mannose loosely. When urine flow increases and pulls on the bacterium, the mechanical force triggers an allosteric shift in FimH that switches it to a high-affinity binding mode, locking it tightly onto the bladder cell surface. When flow drops again, the grip loosens, allowing bacteria to detach and spread to new sites. It is an elegant mechanical switch: the harder the body tries to flush the bacteria, the tighter they cling.

The pilus shaft itself contributes to this toughness. The helical rod of type 1 pili can uncoil under tension, acting as a molecular spring that absorbs force and extends the time the adhesin stays engaged. Simulations show that at higher shear rates, this uncoiling can stretch the bacterium’s tether to more than ten micrometers before the bond reaches its critical load, buying the adhesin extra time to lock in.

Type IV Pili Are Retractable Grappling Hooks

Type IV pili stand apart from every other class because they can extend and retract. Two motor proteins power this cycle: PilB, which hydrolyzes ATP to push pilin subunits into the growing filament, and PilT, which hydrolyzes ATP in the opposite functional direction to pull subunits back out. Both motors form ring-shaped complexes, and their distinct conformational states determine whether the pilus is being assembled or disassembled. Structural studies suggest the motors rotate in opposing directions to achieve these opposing outcomes, consistent with a rotary model of pilus dynamics.

This retraction ability drives two hallmark behaviors: twitching motility and natural transformation. Twitching motility is a form of surface crawling in which bacteria repeatedly extend a pilus, attach it to a surface or another cell, then retract it to haul themselves forward. Natural transformation is the uptake of free DNA from the environment, pulled into the cell through the retracting pilus. Classic experiments with Neisseria gonorrhoeae showed that mutants lacking a functional PilT protein retained normal-looking pili but could neither twitch nor take up DNA, confirming that retraction, not just the presence of the filament, is essential for both functions.

Not all type IV pili behave identically. In Acinetobacter baumannii, naturally occurring variants of the major pilin subunit PilA shift the balance between these functions. One group of variants promotes twitching motility and DNA uptake, while another favors biofilm formation at the expense of those retraction-dependent activities, behaving similarly to retraction-deficient mutants. Bacteria can also regulate pilus production itself: a small regulatory RNA in A. baumannii called Arp represses pilin translation, and overproducing it sharply reduces both twitching motility and DNA uptake.

Conjugative Pili Transfer Genes Between Cells

Conjugative pili, sometimes called sex pili or F-pili, are responsible for one of the most consequential behaviors in microbiology: horizontal gene transfer. A donor bacterium extends a conjugative pilus to make contact with a recipient cell, and genetic material, typically a plasmid, travels from one to the other. The traditional view held that the pilus only establishes initial contact before the two cells are pulled into direct wall-to-wall contact for DNA transfer. Recent work with E. coli has challenged that picture by showing that single-stranded DNA can travel through the pilus itself, even when the donor and recipient have not formed a tight mating junction. This matters because the plasmids transferred this way often carry antibiotic resistance genes, making pilus-mediated conjugation a primary driver of resistance spread.

Sortase-Assembled Pili in Gram-Positive Bacteria

Gram-positive bacteria such as streptococci, enterococci, and corynebacteria build their pili through a completely different mechanism. As pilin subunits emerge from the cell membrane, a pilus-specific sortase enzyme clips each subunit at a conserved sorting signal and then forms a covalent isopeptide bond linking the end of one subunit to a lysine residue on the next, like threading beads onto a string. The process is sequential: a designated tip pilin is attached first, followed by repeated additions of shaft pilins, and a base pilin is eventually anchored to the cell wall.

The covalent backbone makes these pili exceptionally stable compared to the noncovalent assemblies of Gram-negative bacteria. That stability is one reason sortase-assembled pili are attractive vaccine targets: their surface-exposed pilins are rigid and immunogenic. However, vaccines targeting pilin proteins only protect against strains that express those pili, and some bacteria can selectively shut off pilus expression under immune pressure. This has pushed researchers toward multivalent vaccines that combine pilin antigens with more broadly conserved bacterial proteins.

Curli Fibers and Biofilm Armor

Curli fibers are an unusual class of pilus-like structures produced by E. coli and related bacteria. They are functional amyloids: their subunits deliberately polymerize into the same cross-beta-sheet architecture found in disease-associated amyloids, yet the bacterium carefully controls the process. A dedicated multicomponent secretion system shuttles the aggregation-prone curli subunit CsgA safely across the periplasm and outer membrane, then coordinates its self-assembly into surface-attached fibers. Together with cellulose, these curli fibers form a tough extracellular matrix that encapsulates bacterial communities within a biofilm, protecting them from antibiotics, desiccation, and immune attack.

Antigenic Variation Lets Bacteria Dodge Antibodies

Neisseria gonorrhoeae and Neisseria meningitidis use type IV pili for attachment and motility, but those same pili are prominent targets for the immune system. To stay ahead of antibody responses, these bacteria continuously shuffle the gene encoding their major pilin protein, drawing on a repertoire of silent gene cassettes to produce pilins with altered surface-exposed regions. This process, called pilin antigenic variation, requires specific DNA-repair and recombination genes including recA, rep, and recJ, and the underlying mechanism is conserved between the two species.

Antigenic variation does more than dodge antibodies. Different pilin variants generate different attractive forces between cells, which changes how tightly bacteria cluster together. Some variants favor dense, antibiotic-tolerant aggregates while others promote loosely associated populations, and phase variation can even produce non-piliated cells that segregate to the leading edge of a growing colony. So what looks like a simple immune-evasion trick turns out to shape the physical structure and competitive dynamics of bacterial communities.

Pili as Landing Pads for Bacterial Viruses

Pili are not just tools bacteria use on the world around them; they are also vulnerabilities. Bacteriophages, the viruses that infect bacteria, often exploit pili as receptors to gain entry. Filamentous phages like f1 bind to F-pili on E. coli, with electron microscopy showing phage particles attached along the length of the pilus and at the cell surface. Single-stranded RNA phages like MS2 also use F-pili, and fluorescent tracking has revealed that infection by these phages triggers the host cell to detach its own F-pili, with higher doses of phage causing the release of longer pili. This phage-induced pilus shedding may be a side effect of the infection mechanism, but it also illustrates a broader evolutionary tension: bacteria need pili for conjugation and biofilm formation, yet every pilus on the surface is a potential entry point for a virus.

Electrically Conductive Pili and Nanowires

Some pili carry out a function that would not seem biological at all: conducting electricity. Geobacter sulfurreducens, a soil bacterium that “breathes” iron instead of oxygen, produces type IV pili whose truncated pilin subunits pack aromatic amino acids tightly enough to create a conductive path along the fiber’s length. A mutant lacking these pili could still physically attach to iron oxide minerals but could no longer reduce them, and atomic force microscopy confirmed that the pili were highly conductive, leading researchers to describe them as biological nanowires. These e-pili also allow electron transfer between microbial species and through the thick conductive biofilms that Geobacter forms on electrodes.

This conductivity has attracted interest from materials scientists. Researchers have incorporated pilin-based nanowires into water-stable polymer composites to create sensor devices that respond to dissolved ammonia across a wide concentration range. Genetically modifying the nanowires to display an ammonia-binding peptide on their outer surface boosted the sensor response tenfold, demonstrating that the pilin scaffold can be customized for detecting specific chemicals. Separately, mannose-binding type 1 pili have been expressed in an engineered exoelectrogenic E. coli strain to selectively attach current-producing cells to mannose-coated surfaces, a step toward building patterned bioelectronic devices.

Targeting Pili to Fight Infection

Because pili are critical for the early steps of infection but are not essential for bacterial survival in a test tube, they are attractive targets for a new class of therapeutics that disarm pathogens without killing them outright. The logic is appealing: drugs that block virulence without imposing the same life-or-death selective pressure as antibiotics might generate less resistance. Three broad strategies have been pursued: vaccines against pilin proteins, competitive inhibitors that block the adhesin’s binding pocket, and small molecules that disrupt pilus assembly itself.

The most developed small-molecule approach targets the chaperone-usher pathway. A family of synthetic compounds called pilicides, built on a bicyclic 2-pyridone scaffold, interfere with the chaperone’s ability to deliver pilin subunits for assembly. In laboratory and clinical UPEC strains, pilicides reduced mannose-mediated attachment to bladder cells, biofilm formation, and hemagglutination by roughly 90%. Related ring-fused 2-pyridones, termed curlicides, have been designed to block curli amyloid assembly as well, with some compounds showing dual activity against both pili and curli. On the antibody front, monoclonal antibodies targeting the FimH adhesin have shown protection against UPEC UTI in preclinical models, representing another route toward pilus-directed therapy.

Pili as Weapons in Microbial Competition

Pili do not just mediate interactions with host tissues. In mixed microbial communities, type IV pili allow some bacteria to sense, approach, and attack their competitors. Pseudomonas aeruginosa uses type IV pili for chemotaxis toward Staphylococcus aureus, actively crawling into S. aureus microcolonies and disrupting their structure, giving Pseudomonas a competitive advantage in co-culture. More broadly, type IV pilus-driven motility and extracellular matrix secretion shape the spatial organization of mixed-species colonies, influencing which species end up where and how they interact under different environmental conditions.

An Ancient Molecular Machine

The diversity of modern pili might suggest they each evolved independently, but phylogenetic analysis tells a different story for at least one major group. The type IV filament superfamily, which includes type IV pili, type II secretion systems, and the archaella that propel archaea, appears to predate the split between Bacteria and Archaea, two of the three domains of life. Over billions of years, gene duplications, acquisitions, and losses reshaped this ancestral machinery into the functionally distinct systems we see today. That deep evolutionary history helps explain why type IV pili are found in such an enormous range of bacterial and archaeal species and why their core components are so highly conserved even when their biological roles differ.