 The yellow gas is unstable and reacts with many materials.It is formed by a reaction between ammonia and chlorine or sodium hypochlorite.It is a byproduct formed during the synthesis of monochloramine and nitrogen trichloride.