A scanning electron microscope (SEM) is a type of microscope that produces an image by scanning the surface of a specimen with a beam of electrons. The electrons interact with the atoms in the specimen, and the resulting secondary electrons are detected and used to create an image. SEMs can produce high-resolution images of the surface of a specimen, and they are often used to study the microstructure of materials.