It is made by reacting ammonia with oxygen with a catalyst. It is also made in lightning. It can be made in small amounts by reacting copper with nitric acid. It can also be made by reducing nitrous acid with compounds such as iron(II) sulfate.