EFM operates by applying a voltage to the tip of an Atomic Force Microscope (AFM) while scanning the sample surface. The electrostatic forces between the tip and the sample cause deflections in the cantilever, which are measured. These deflections are used to generate an electrostatic force map of the sample surface.