The invention discloses a welding machine which comprises a welding body composed of a welding rack, a protection mechanism and a dust suction mechanism, the welding rack comprises a sliding rod, a supporting frame is fixedly connected to the bottom of the sliding rod, a base is fixedly connected to the bottom of the supporting frame, a waste box is slidably connected to the top of the base, a waste through plate is fixedly connected to the top of the base, the dust suction mechanism is fixedly connected to the top end of the waste through plate, and a bearing plate is fixedly connected to thetop of the right side of the dust suction mechanism. The welding machine relates to the technical field of welding. The welding machine solves the problems that in the welding process, a welding rod,a weldment and a coating generate evaporation, condensation and gas under the high-temperature effect of electric arcs, a large number of smoke particles are generated, meanwhile, eyes and skin of people are radiated by arc light, air around the electric arcs generates toxic gas under the intense radiation effect of the arc light, meanwhile, molten welding flux is prone to adhering to the weldingrack, as a result, the quality of the weldment is affected due to unevenness of the weldment.