Our atmosphere contains gases like nitrogen and oxygen. These gases scatter sunlight, especially the shorter blue light, which gives the sky its color during the day.