Nitrogen-fixing bacteria in soil play a crucial role in converting atmospheric nitrogen into a form that plants can use for growth. This process, known as nitrogen fixation, helps in increasing soil fertility and promoting plant growth by providing them with a vital nutrient - nitrogen. By forming symbiotic relationships with certain plants or living freely in the soil, nitrogen-fixing bacteria contribute significantly to the nitrogen cycle and overall ecosystem health.