Bacteria play a crucial role in the nitrogen cycle by facilitating the conversion of nitrogen between different forms. They are responsible for processes such as nitrogen fixation, nitrification, and denitrification. Nitrogen-fixing bacteria convert atmospheric nitrogen into a form that plants can use. Nitrifying bacteria convert ammonium into nitrates, which can be taken up by plants. Denitrifying bacteria convert nitrates back into atmospheric nitrogen, completing the nitrogen cycle.