In this paper, we show that atomic resolution in scanning tunneling microscopy (STM) originates from pz or dz2 states on the tip. Consequently, only a limited selection of tip materials can provide atomic resolution: d-band metals, for example, Pt, Ir, Pd, Rh, W, Mo; semiconductors that tend to form p-like dangling bonds, for example, Si.