How does nitrogen help in metal production?

Nitrogen can increase the hardness of metals by creating a more uniform grain size, reducing porosity, and improving corrosion resistance.