The invention discloses an electric valve and a welding process thereof. The electric valve comprises a valve body, a water inlet pipe, a water outlet pipe, a valve neck seat, a mounting flange, a valve deck, an electric opening and closing assembly, a water baffle assembly, a flashboard, a bearing and a connection flange; the water inlet pipe is welded to the outer wall of the bottom end of one side of the valve body in a through mode; and the water outlet pipe is welded to the outer wall of one side, opposite to the water inlet pipe, of the valve body in a through mode. The electric valve achieves vertical movement of the flashboard inside the valve body through arrangement of the electric opening and closing assembly, electric opening and closing and flow control over the valve are achieved, remote control over the valve is achieved through electricity, and the purpose of the valve is wide; through arrangement of the water baffle assembly, atop cover is conical to prevent rain for the valve, rain corrosion on the valve is reduced, and long-time use of the valve is facilitated; according to the welding process of the electric valve, a weld joint welded at the valve neck seat is aU-type groove; and the structure increases the stress of the valve, the welding effect of the valve is improved, and the quality of the valve is improved.