Basics
Why is space black?
Two reasons. On Earth the daytime sky is blue because air scatters sunlight; in space there is no air, so you see the Sun but black around it. And at night, if the universe were endless and ageless every line of sight would end on a star and the sky would blaze; it is dark because the universe has a beginning, 13.8 billion years ago, and light from most of it has not had time to reach us.
See it on the live map