Atomic force microscopy (AFM) is a scanning probe microscopy technique capable of producing high-resolution topographical images of a sample surface. AFM works by scanning a sharp tip over a surface and measuring the force between the tip and sample using a laser beam and photodetector. This force is characterized by Hooke's law and depends on the tip deflection and spring constant. AFM can operate in contact, non-contact, or tapping mode and is used across many fields due to its ability to image both hard and soft materials with nanoscale resolution.