The phenomenon responsible for the red color of the sun at sunrise and sunset is Rayleigh scattering, a type of scattering where shorter wavelengths of light (blue, violet) are scattered more than longer wavelengths (red, orange) when light passes through the Earth's atmosphere.