What is nitrogen used for in welding?

In welding, nitrogen is primarily used as a shielding gas to protect the weld area from atmospheric contamination. It helps in achieving cleaner welds, reducing oxidation, and improving the overall quality of the weld.