Nitrogen-fixing bacteria combine elemental nitrogen with hydrogen or oxygen to create compounds plants require for growth, including ammonia and nitrates. Some nitrogen-fixing bacteria work independently, while others work with legumes to complete the transformation. Nitrogen-fixing bacteria convert over 90 percent of the nitrogen plants use.