Nitrogen-fixing bacteria play a crucial role in the nitrogen cycle by converting atmospheric nitrogen into a form that plants can use, thereby increasing the availability of nitrogen in the soil. This process is important for plant growth and overall ecosystem health.