In nature, bacteria live in microbial communities and interact with other species, for example, through the exchange of resources leaked into the external environment (i.e., cross-feeding interactions). The role that these cross-feeding interactions play in shaping patterns of diversification remains understudied. Using a simple bacterial system in which one species cross-feeds resources to a second species (commensal species), we showed that the commensal species diversified into two subpopulations that persisted only when the cross-feeder partner was present. We further observed loss-of-function mutations in flagellar genes that were fixed in monocultures but not in co-cultures. Our findings suggest that cross-feeding species influence patterns of diversification of other species. Given that nutrient leakage is pervasive in microbial communities, the findings from this study have the potential to extend beyond our specific bacterial system. Importantly, our study has contributed to answering the larger question of whether species evolved differently in isolation versus when interacting with other species.