Why does the sun appear red at sunrise ?

At the sunrise the sun and the surrounding appears to be red because at that time most of the blue color present in sunlight has been scattered out and away from our line of sight, leaving behind mainly red color in the direct sunlight beam that reaches our eyes.