AFM operates by scanning a sharp tip over the surface of a nanomaterial. The interactions between the tip and the surface generate data that can be used to create high-resolution images. AFM is particularly effective in measuring surface roughness, mechanical properties, and detecting defects at the nanoscale without causing damage.