Microbes often live in dense communities called biofilms, where competition between strains and species is fundamental to both evolution and community function. Although biofilms are commonly found in soil-like porous environments, the study of microbial interactions has largely focused on biofilms growing on flat, planar surfaces. Here, we use microfluidic experiments, mechanistic models, and game theory to study how porous media hydrodynamics can mediate competition between bacterial genotypes. Our experiments reveal a fundamental challenge faced by microbial strains that live in porous environments: cells that rapidly form biofilms tend to block their access to fluid flow and redirect resources to competitors. To understand how these dynamics influence the evolution of bacterial growth rates, we couple a model of flow-biofilm interaction with a game theory analysis. This investigation revealed that hydrodynamic interactions between competing genotypes give rise to an evolutionarily stable growth rate that stands in stark contrast with that observed in typical laboratory experiments: cells within a biofilm can outcompete other genotypes by growing more slowly. Our work reveals that hydrodynamics can profoundly affect how bacteria compete and evolve in porous environments, the habitat where most bacteria live. bacterial evolution | porous media flow | clogging | game theory | adaptive dynamics M odern microbiology relies on growing cells in liquid cultures and agar plates. Although these conditions offer high throughput and repeatability, they lack the complex physical and chemical landscapes that microbes experience in their natural environments. This environmental heterogeneity is increasingly recognized to exert a powerful influence on microbial ecology across a wide diversity of habitats, ranging from the ocean to the human gut (1-4). Although advances in sequencing technology now allow us to resolve how the genetic composition of microbial communities changes in response to environmental conditions (5, 6), we often lack a mechanistic understanding of the underlying processes. Novel empirical approaches, which simulate the conditions found in realistic microbial habitats, are needed to understand the strategies that cells use to gain an advantage over their competitors (7).The overwhelming majority of bacteria live in porous environments between the particles that compose soil, aquifers, and sediments, and cumulatively comprise roughly half of the carbon within living organisms globally (8). Cells in porous environments typically reside in surface attached structures known as biofilms (9), in which diverse bacterial genotypes live under intense competition for limited resources (10, 11). Recent efforts have identified specialized mechanisms that cells use to gain advantage over competing genotypes in biofilms, ranging from the secretion of toxins to polymer production and metabolic regulation (12-18). Whereas genotypic competition is most frequently studied in biofilms growing on simple flat surfaces (19-21...