Free-living nitrogen-fixing bacteria carry out the process independently and symbiotic nitrogen-fixing bacteria only fix nitrogen in association with certain plants.