A bacterium no wider than a speck can now be watched swimming inside a tiny hollow sphere, rather than being pinned to a glass slide or lost in open water. Researchers at New York University built these microscopic chambers to study how bacteria move in the cramped spaces they often encounter in nature and in the body.

That matters because the usual ways of watching bacteria change what scientists can see. On a glass plate, a cell is held in place and its movement is limited to two dimensions. In a drop of liquid, it can swim out of a microscope’s view in moments. Yet bacteria often travel through curved, narrow spaces, such as soil pores, biofilms and crevices in tissue. “Confinement is the normal condition, not the exception,” said Rui Zeng, a graduate student in NYU’s Department of Chemistry and the study’s first author.

The team made hollow spherical capsules, called micro-traps, that are 5 to 10 micrometers across. Each has an opening about one micrometer wide. Their size and entrance can be set through the chemistry used to make them. The capsules are produced by the millions in a flask, said Stefano Sacanna, an NYU chemistry professor and co-corresponding author. Once a bacterium slips through the opening, it can swim freely while staying in view.

The researchers first studied Caulobacter crescentus, a bacterium commonly found in lakes and streams. It has one rotating, hairlike flagellum at one end. Inside the traps, the team saw three patterns of movement. The bacteria swam forward while gliding along the wall, moved forward while touching the surface with their leading tip, or swam backward with the flagellum first in tight, regular loops. In the forward-moving patterns, the flagellum trailed behind. Each pattern matched a different way the flagellum met the capsule wall.

A standard microscope records width and height but not depth. The team turned image blur—usually a problem—into a clue, calibrating it to reconstruct each cell’s path in three dimensions. The method needs no dyes and lets researchers follow a single swimmer for longer than they could in open liquid. The work was published in the journal Small.

The approach also offers a way to compare how different bacteria respond to tight spaces. The source article describes Caulobacter and Pseudomonas roaming through the whole sphere, while E. coli creeps along its wall. E. coli, commonly found in the intestines, has many flagella; Pseudomonas can cause infections. These differences suggest that the shape and motion of a bacterium may affect how it navigates a confined environment.

The study does not yet explain every role of bacterial flagella, but it gives scientists a way to observe motion closer to the conditions bacteria actually face. By changing the chamber’s size and opening, researchers can offer single cells different spaces to explore and watch their paths in 3D. That could help build a clearer picture of how microscopic life moves through soil, water and the narrow spaces of living tissues.