What is the principle underlying the use of cyanobacteria in agricultural fields for crop improvement?

Cyanobacteria have the ability to fix atmospheric nitrogen. Their use in agricultural fields increases soil fertility and thus they are used as biofertilizer.