A process for heat treating metal, comprising continuously conveying the metal through an elongated treatment chamber having a first upstream heating zone and a second downstream cooling zone, continuously introducing from outside said chamber into said first zone a gas consisting essentially of nitrogen containing between 0.5 to 5% of oxygen plus reducing gas in an amount at least sufficient to react with and eliminate said oxygen, and continuously introducing from outside said chamber into said second zone a gas consisting essentially of nitrogen which is substantially oxygen-free.