Rhizobia are diazotrophic bacteria that fix nitrogen after becoming established inside the root nodules of legumes. To express genes for nitrogen fixation, rhizobia require a plant host; they cannot independently fix nitrogen.