Nitroguanidine is produced commercially by a two step process starting with the reaction of calcium cyanamide with ammonium nitrate.
Nitroguanidine can also be generated by treatment of urea with ammonium nitrate.