Astrophotography is a specialized type of photography that entails recording images of astronomical objects and large areas of the night sky. The first photograph of an astronomical object was taken in 1840, but it was not until the late 19th century that advances in technology allowed for detailed stellar photography.