HOW does lightning effect the environment?

lightning does have an effect on the environment it can put nitrogen in the ground for plants to use