UFM operates by integrating an ultrasonic transducer with a conventional AFM setup. The transducer applies high-frequency oscillations to the sample, while the AFM tip scans the surface. These oscillations cause variations in the interaction forces between the tip and the sample, which are detected and analyzed to produce high-resolution images. The technique is sensitive to subsurface features, enabling the study of buried structures and interfaces.