Scanning tunneling microscopy (STM) allows investigation of surfaces down to the atomic scale by using quantum tunneling of electrons between a sharp tip and conductive sample. An STM works by scanning the tip across the sample in a constant-height or constant-current mode maintained by a feedback loop. The tunneling current depends exponentially on the tip-sample distance, enabling atomic resolution. STM is useful for imaging surfaces in materials science, physics, and biology and can provide topographic and spectroscopic information.