Soil and underground water systems are complex environments where tiny microorganisms play a vital role in processes like nutrient recycling, breaking down pollutants, and managing carbon levels. Many bacteria use a process called chemotaxis, which allows them to detect and move toward nutrient-rich areas. However, the underground world is not uniform; it consists of intricate networks of tiny spaces and pores that cause uneven fluid flow and nutrient distribution. Scientists have long wondered how these physical conditions affect how bacteria search for nutrients, but the answer has remained unclear. To study this, a research team led by Joaquín Jiménez-Martínez, a professor at ETH Zurich and Eawag, developed a new microfluidic platform. This device mimics real underground conditions and allows scientists to observe individual bacteria as they move through controlled environments. The platform creates artificial "hotspots" of nutrients that resemble those found near soil particles, organic matter, or plant roots. Using this tool, the researchers observed how a common soil bacterium, Azospirillum brasilense, moved under different flow conditions and through various pore structures. The study found that physical heterogeneity—meaning the unevenness of the underground environment—actually helps bacteria find nutrients more effectively. Contrary to previous beliefs, the researchers discovered that complex, porous structures create slow-moving areas where bacteria can linger and swim toward nutrients. As a result, bacteria that can move actively toward nutrients (chemotactic bacteria) had significantly more access to nutrients than those that simply drifted with the flow. In highly varied environments, the advantage of chemotaxis was about 1.5 times greater than in uniform, smooth environments. The findings suggest that the natural complexity of underground spaces plays a crucial role in how microorganisms behave. This has important implications for understanding natural processes like soil respiration and nutrient cycling, as well as for environmental applications such as cleaning up contaminated groundwater. The study, published in the Proceedings of the National Academy of Sciences, highlights the importance of considering physical heterogeneity when studying microbial life in the subsurface.