What purpose does the nitrogen cycle have?

What purpose does the nitrogen cycle have?