Nitrogen-fixing bacteria like Rhizobium form a symbiotic relationship with the leguminous plants in their roots. These microbes form root nodules in the legumes through which they fix nitrogen. The root nodule helps creating zero-oxygen environment to conduct nitrogen fixation process. The bacteria have the enzyme nitrogenase that helps in the process of fixing nitrogen.