The sky changes color throughout the day due to light scattering in the atmosphere. Shorter wavelengths of blue light scatter more effectively than longer wavelengths, making the sky appear blue. At sunrise and sunset, when the sun's light passes through more atmosphere to reach our eyes, the blue light is absorbed and scattered out, leaving us to see the red, orange and yellow colors. Additional factors like dust, pollution and moisture can also influence the sky's appearance.