<human>:  When was the first photograph ever taken?
<bot>: The first photograph was taken by Joseph Nicephore Niepce in 1826. He developed a method of creating images on paper coated with silver salts, which are chemicals that react with light to produce an image. The image was created by exposing the paper to light, then developing it with mercury.