To prepare pure nitrogen in the laboratory, a mixture of ammonium chloride (NH4Cl) and sodium nitrite (NaNO2) is heated. The first product that is formed is ammonium nitrite (NH4NO2). This compound is very unstable, and breaks up into nitrogen and water. Caution must be used in this experiment to avoid explosive reactions.