We study the ecological and genetic factors influencing the evolution of facultative bacterial pathogens and plant mutualists as well as the ecological consequences of these dynamics. Our approach integrates theoretical and quantitative ecology and evolution with microbial genetics.