A safety system is provided for a machine tool which has a frame and a tool. The safety system has a clamping device and a motion device. The clamping device is movable by the motion device from a working position, in which the tool is extended and can be used for working, to a safety position, in which the tool is retracted. The motion device has a first magnetic means connected to or arranged on the tool and a second magnetic means connected to or arranged on the frame, such that movement of the tool by the motion device from the working position to the safety position can be triggered and/or at least partially performed by magnetic force.