Why is the sky blue?

The sky appears to be blue because of the way sunlight scatters in the atmosphere. The white light from the sun is composed of many frequencies and as it travels through the atmosphere, the blue light, which has a shorter frequency, scatters more. When looking at an area of the sky away from the sun we see the scattered blue light.