The sky looks blue because air molecules scatter short blue wavelengths from sunlight more than red ones.
A classic science question with a simple answer.
This is one of the best example pages for turning a common search into a clean explanation.
Sunlight is made of many colors. When it enters the atmosphere, blue light gets scattered in all directions more easily than red light.
At sunset, sunlight travels through more atmosphere, so the blue light scatters away before it reaches you.
The short version is that the atmosphere filters and scatters light, and our eyes see the result as blue.
More from DoesWhat: free calculators · emoji meanings · quick answers · the DoesWhat blog