The moon illusion is primarily caused by atmospheric refraction - light bends as it passes through different density layers of Earth's atmosphere, especially near the horizon. This refraction makes celestial objects appear larger when low in the sky. Total internal reflection, scattering, and diffraction don't cause this effect.