Electron microscopy uses a beam of electrons to create an image of the nanomaterial. In TEM, electrons pass through the sample, providing information about the internal structure. SEM, on the other hand, scans the surface with electrons, offering detailed surface morphology. These techniques are essential for visualizing the nanoscale features that are not possible with traditional optical microscopes.