The invention relates to a machinery mechanism for achieving lifting and rotating actions. The machinery mechanism comprises a base, a screw rod, a screw sleeve, a screw sleeve check ring, a screw sleeve rotation frame and a torsion spring, and one end of the screw rod and one end of the torsion spring are installed on the base. The machinery mechanism has horizontal motion and rotation functions, wherein the horizontal motion function can achieve the purpose that the screw sleeve is lifted in a horizontal movement mode, the rotation function can achieve the purpose of rotation of the screw sleeve, and the actions of the two functions happen sequentially. The machinery mechanism has the advantages that the structure is compact, rigidity and precision are high, modularization can be achieved easily, complete mechanical coupling is adopted, and the reliability is extremely high. The machinery mechanism adapts to high-temperature, low-temperature, high-electromagnetism, dust and corrosive gas environments, and the machinery mechanism belongs to a kind of solution for replacing multi-power-source associated equipment and replacing single repeated action executing.