SEM uses focused beams of electrons to produce high-resolution images of the surface topography of nanomaterials. The interaction between the electrons and the sample generates signals that are used to create detailed images, allowing researchers to study the surface structure and composition.