The application discloses a 5G remote variable-
structure control multi-degree-of-freedom swing mechanical arm, which comprises a fixed rod, a supporting rod, a rotating rod, a
micro motor one, a rotating pin, a rotating block, a
micro motor two, a gear, a gear ring, a round rod, a micro bearing, a T-shaped block, a clamping groove, a T-shaped rod, a spring one, a clamping block, a micro push rod, an inclined block one, an inclined block two, a magnetic ring one, a magnetic ring two and a spring two. The
micro motor two is started, the micro motor two drives the gear to rotate through variable-
structure control input current, further drives the gear ring to rotate, drives the rotating rod to rotate, rotates the supporting rod, makes the T-shaped block enter the inside of the circular groove, when the limiting groove on the T-shaped block is aligned with the clamping block, under the elastic deformation of the spring one, the T-shaped rod is displaced to drive the clamping block to enter the inside of the limiting groove, the micro push rod drives the inclined block one to move, the inclined block one extrudes the inclined block two, the inclined block two moves, and the magnetic ring two moves to be adsorbed and attached to the magnetic ring one, convenient rotation, installation and limiting are realized.