Magnetic tweezers operate based on the principle of magnetic force. A magnetic field is generated using external magnets or electromagnets. When a magnetic particle is placed in this field, it experiences a force that can be controlled by adjusting the strength and direction of the magnetic field. This force can be used to manipulate particles with nanometer precision.