This document discusses three primary modes of atomic force microscopy (AFM) and their applications in nanolithography. The three modes are contact mode, tapping mode, and non-contact mode. Contact mode allows fast scanning but can damage soft surfaces. Tapping mode provides higher resolution with minimal damage. Non-contact mode exerts very low force but can have lower resolution. Each mode has distinct uses in nanofabrication including patterning polymers, local oxidation, and controlling pattern size.