The principle behind the STM is quantum tunneling. When the metallic tip is brought extremely close to the surface, a voltage applied between the tip and the surface allows electrons to tunnel through the vacuum between them. The resulting tunneling current is highly sensitive to the distance between the tip and the surface, enabling atomic-scale resolution.