The invention relates to the field of illumination, in particular to a magnetic attraction rotating assembly for adjusting the angle of a light beam and a spotlight using the magnetic attraction rotating assembly. The assembly comprises a motor fixing part, a motor, a driving gear, a driven gear, a DC plug and a magnetic buckle, the motor drives the driving gear to rotate, the driven gear is detachably connected with the motor fixing part in a pluggable mode, and when the driven gear and the motor fixing part are inserted and fixed, the driven gear is meshed with the driving gear, so that thedriven gear can rotate along with rotation of the driving gear; the DC plug comprises a DC male plug and a DC female plug, one of the two plugs is fixed at the center of the driven gear, and the otherone is fixed at the corresponding position of the motor fixing piece, so that the two plugs are also inserted and conducted when the driven gear and the motor fixing piece are inserted and fixed; themagnetic buckle comprises at least two magnetic materials which can be attracted to each other, one magnetic material is arranged on the driven gear, and the other magnetic material is correspondingly arranged on the motor fixing piece. By means of the structure, winding in the rotating process can be avoided, and the irradiation angle can be adjusted by 360 degrees.