HRTEM works by transmitting a beam of electrons through an ultra-thin sample. The interaction of the electrons with the sample creates an image that can be magnified to reveal atomic-scale details. The ability to achieve high resolution is dependent on the electron wavelength, which is much shorter than that of visible light, allowing for much finer detail to be observed.