The invention relates to the field of automatic machining, in particular to automatic bending and welding equipment for door and window pipe materials. The automatic bending and welding equipment comprises a base and further comprises a rotary workbench, a first overturning mechanical arm, a first bending assembly, a second bending assembly, a second overturning mechanical arm and a welding assembly. The rotary workbench comprises a stepping type index plate and a rotary disc. The rotary disc is provided with a clamping assembly used for fixing a square pipe. The first overturning mechanical arm, the first bending assembly, the second bending assembly, the second overturning mechanical arm and the welding assembly are sequentially arranged in the output direction of the rotary disc, and the first overturning mechanical arm, the first bending assembly, the second bending assembly, the second overturning mechanical arm and the welding assembly are all arranged on the base. The output endof the first overturning mechanical arm and the output end of the second overturning mechanical arm are arranged oppositely and extend in the axis direction of the rotary disc. By means of the automatic bending and welding equipment, bending of the stainless steel square pipes and the right angle welding work are achieved.