Near-field techniques like NSOM leverage the evanescent waves that exist in the near field of an illuminated sample. By scanning a probe very close to the sample surface, these techniques can bypass the diffraction limit and achieve resolutions down to tens of nanometers.