Why is the sky dark at night?
Short answer
At night, our part of Earth faces away from the Sun, so we are not looking at air illuminated by direct sunlight.
How it works
We can still see starlight, but stars are far less bright to us than the Sun. In space, directions without incoming light look black.
Key point
The practical point is this: In space, directions without incoming light look black.