The sky changes color throughout the day due to light scattering in the atmosphere. Blue light scatters more than other colors, which is why the sky appears blue when the sun is high. At sunrise and sunset, the sun's light passes through more atmosphere, scattering the shorter wavelengths and allowing the longer wavelengths like red and orange to dominate the sky. Additional factors like dust, pollution, clouds, and humidity can also influence sky color at different times of day.