On April 2, 1845, French physicists Léon Foucault and Hippolyte Fizeau took the first photograph of the sun. They used a relatively new technique, that of the daguerreotype.
The very first photo of the sun still exists. This was taken on the second of April of the year 1845 with a shutter speed of 1/60 of a second. The photo has a diameter of twelve centimeters. Foucault and Fizeau took the photo because they were jointly investigating the interference of light and heat. Léon Foucault would eventually become especially famous with the Foucault Pendulum, named after him, with which he showed that the earth revolved .
The oldest surviving photograph of the moon – also a daguerreotype – dates from 1851 and was taken by John Adams Whipple.