Welding flux is a substance used during the welding process to shield the weld area from atmospheric contamination. In metal arc welding, the flux is part of the welding rods.
When the arc is initiated, the high temperature melts the work piece and the welding rod. The flux coating on the rod also melts and forms a protective shield over the weld poor, protecting it from the atmospheric gases.