Electron microscopes function by emitting a beam of electrons that interact with the specimen. The interaction between the electrons and the atoms in the sample generates various signals. These signals are then captured and converted into an image. The wavelength of electrons is much shorter than that of light, allowing for much higher resolution imaging.