SEM uses a focused beam of electrons that interact with the surface of the sample, causing it to emit secondary electrons. These secondary electrons are collected by detectors to form a high-resolution image of the sample's surface. SEM is widely used due to its ability to provide detailed surface morphology and composition information.