Astrophotography is a specialized type of photography that entails recording images of astronomical objects and large areas of the night sky. Besides being able to record the details of extended objects such as the Moon, Sun, and planets, astrophotography has the ability to image objects invisible to the human eye such as dim stars, This is done by long time exposure since both film and digital cameras can accumulate and sum light photons over these long periods of time. In professional astronomical research photography revolutionized the field, with long time exposures recording hundreds of thousands of new stars and nebulae that were invisible to the human eye, leading to specialized and ever larger optical telescopes that were essentially big "cameras" designed to collect light to be recorded on film. Direct astrophotography had an early role in sky surveys and star classification but over time it has given way to more sophisticated equipment and techniques designed for specific fields of scientific research, with film (and later astronomical CCD cameras) becoming just one of many forms of sensor.nebulae, and galaxies.
Astrophotography is a large sub-discipline in amateur astronomy where it is usually used to record aesthetically pleasing images, rather than for scientific research, with a whole range of equipment and techniques dedicated to the activity.