Why sky is blue ?

After days of rain, a patch of blue sky is a sight for sore eyes. But why is the sky blue?