The invention discloses an automatic painting robot for shipbuilding painting, which includes a painting movement mechanism, a PLC and a spray gun; the painting movement mechanism includes a left and right movement mechanism, a front and rear movement mechanism and a rotation movement mechanism; The first motor, the first motor drives the slide block to move left and right, the spray gun is fixed on the slide block, the first shell is provided with a distance sensor; The internal movement of the motor moves back and forth; the rotary motion mechanism includes a support plate, a third motor and a fixed gear, the left and right motion mechanism and the support plate are connected to the inner shell through a bearing, the third motor drives the left and right motion mechanism to rotate around the bearing, the distance measuring sensor, the first motor , the second motor and the third motor are respectively electrically connected to the PLC. The invention improves work efficiency, saves labor cost, shortens construction period, has good uniformity of paint coating, and improves the quality of paint coating.