Aberration correction involves the use of additional electromagnets, known as correctors, that counteract the distortions introduced by the electron lenses. The correctors adjust the phase and amplitude of the electron waves, thereby compensating for spherical and chromatic aberrations. This allows for a more accurate focus of the electron beam, leading to a significant improvement in image resolution.