SIM operates by using a grid or other structured pattern of light to illuminate the sample. This pattern interacts with the sample's features, creating Moire patterns which are captured by the microscope. These patterns carry high-frequency information about the sample. By shifting and rotating the pattern and capturing multiple images, a computational algorithm can reconstruct an image with a resolution approximately twice that of conventional microscopy.