Bluing or black oxidizing is a process of treating a gun barrel or other steel parts by creating a thin protective coating around it. It works by turning rust into black iron oxide. The metal attains a dark blue or nearly black appearance, which protects the barrel of the gun.