The fundamental principle behind 4D STEM involves the integration of electron microscopy with diffraction techniques. As the electron beam interacts with the sample, a diffraction pattern is produced. By scanning the beam across the sample and collecting diffraction data at each point, a comprehensive dataset is generated. Advanced software and computational tools are then used to analyze and visualize this data, providing detailed insights into the sample’s structure and properties at the nanoscale.