Scientists discovered that plant genes shape bacterial evolution in the nitrogen-fixing partnership between legumes and rhizobia soil bacteria.