In confined environments, such as soil and the gut, flow constrains the spatial organization of bacterial communities, impacting their ecological success. Here, the authors reveal that in a community of mixed motile and non-motile Escherichia coli in channels under Poiseuille flow, the motile bacteria induce segregation of non-motile cells, leading to asymmetric biofilm formation, with implications for understanding bacterial colonization dynamics.