The atomic force microscope (AFM) was invented in 1985 by Gerd Binnig and Cristoph Gerber. It uses a sharp tip mounted on a flexible cantilever to scan the topography of a sample at an extremely high resolution down to the atomic level. The AFM works by measuring the interaction forces between the tip and sample surface. It consists of a probe with a sharp tip, a scanner that controls the tip's movement in the x, y, and z directions, and an optical lever system using a laser and photodetector to measure the cantilever's deflection. The AFM can image a variety of samples at the nanoscale and provide 3D topographic information.