Twilight is the time before sunrise or after sunset when sunlight scattered in the upper atmosphere illuminates the lower atmosphere and the surface of the Earth is between light and dark.