Why are bacteria a necessary part of the nitrogen cycle?

Why are bacteria a necessary part of the nitrogen cycle?