Nitrogen fixing bacteria provide usable nitrogen for plants, these may exist in the root nodules where they live in symbiosis with the plants (nitrogen fixation), or this can happen because of lightning, or microorganisms provide them through decomposition.