The red appearance of the sun at sunrise and sunset is due to the scattering of light by atmospheric particles.