SEM uses a focused beam of electrons to scan the surface of a specimen. By detecting emitted and backscattered electrons, it creates a 3D image with high resolution.