An atomic force microscope (AFM) is a powerful instrument used to image and manipulate matter at the atomic level. It works by scanning a sharp probe across a sample surface and measuring the forces that interact between the probe and the surface atoms.