AFM is widely used to measure the surface roughness, mechanical properties, and electrical properties of materials. It operates by scanning a sharp tip over the surface of a sample and recording the force interactions between the tip and the sample. AFM can produce three-dimensional images with nanometer resolution, making it a versatile tool for various applications, including biological samples.