SPMs, such as Atomic Force Microscopes (AFMs) and Scanning Tunneling Microscopes (STMs), operate by scanning a sharp probe over a surface. The interaction between the probe and the surface allows for high-resolution imaging and manipulation of individual atoms and molecules. This is crucial for studying surface properties and fabricating nanoscale devices.