Nitrogen fixation
Free living bacteria and symbiotic bacteria in root modules of legumes.
Rhizobium contains an enzyme called nitrogenase to convert nitrogen and hydrogen to ammonia.
The ammonia is used to make amino acids which the legume can use to make proteins in return for supplying the bacteria with carbohydrates.