Atomic force microscopy (AFM) was invented by Gerd Binning and Calvin Quate in 1985. AFM uses a micro- or nanoscale cantilever with a sharp tip to scan specimen surfaces at the nanoscale level, achieving over 1000 times higher resolution than optical microscopes. There are three main AFM modes - contact mode, non-contact mode, and tapping mode - which differ in how close the tip is to the sample surface during scanning. AFM operates by using a laser to detect bending of the cantilever as its tip interacts with and is deflected by the sample surface, allowing for imaging with angstrom-level resolution.