Rhizobacteria are legumes’ best friends. All plants need nitrogen. Most can only get it from soil. But legumes, such as beans, can get it from air. This is thanks to rhizobacteria. These bacteria live in legumes’ roots. They turn nitrogen from air into a form the plant can use. Plants return the favor by giving the bacteria food and shelter.