It is made by reacting ammonia with sodium to make sodium amide. The sodium amide then reacts with nitrous oxide to make sodium azide. It can also be made by reacting sodium nitrate with sodium amide. Another process is reacting sodium nitrite with hydrazine.