The invention provides a mechanical rotating structure, which comprises a casing, a rolling wheel assembly, a fixed wheel assembly and an elastic assembly, wherein the rolling wheel assembly comprises a rolling wheel, a straight shaft and a bearing, the fixed wheel assembly comprises a fixed wheel, a magnetic metal element and a positioning element, the elastic assembly comprises an elastic element and an electromagnet, at least two bulge elements are arranged on the rolling wheel along the circumferential direction, the bulge elements of the rolling wheel exceed the surface of the casing, the rolling wheel and the fixed wheel are coaxially arranged on the straight shaft, the rolling wheel and the fixed wheel are fixedly connected through the matching by unidirectional inclined teeth, the two sides of the fixed wheel are respectively provided with convex rods, the positioning element is provided with chutes matched with the convex rods, the magnetic metal element is fixedly arranged on the fixed wheel, the elastic element is connected between the fixed wheel and the casing, the electromagnet is arranged at one side, near the elastic element, of the metal element, and in addition, a gap is formed between the electromagnet and the metal element. The mechanical rotating structure has the advantages that the structure is simple and ingenious, the size is small, the mechanical rotating structure can be better popularized and used, in addition, the safety performance is enhanced, and good application prospects are realized in the field of municipal engineering design.