It is used to supply nitrogen to the soil. It is also used in making gunpowder. Some other explosives use it. It can be used to make nitric acid by reaction with sulfuric acid. It is used in rockets and smoke bombs. Sometimes it can be a food preservative.