Root nodules, which allow some bacteria to fix nitrogen into soils for greater plant productivity, have a surprisingly complex metabolism, which could be optimized to develop more sustainable agriculture.