It is used in meat like ham to preserve it. The nitrites are disinfecting, which helps preserve the meat. Almost all processed meat (like cold cuts, hot dogs) contains nitrites. Some people get headaches when they eat nitrites. These headaches have been named "hot dog headaches". It is used to make other chemicals and to get rid of sodium azide. It also can be used when someone is poisoned by cyanide. 