<human>:  When was the first photograph ever taken?
<bot>: The first photograph was taken by Joseph Nicephore Niepce in 1826. He took a picture of his wife using a camera obscura, which is a darkened box that uses a pinhole to project an image of the outside world onto a piece of paper. The image on the paper was then chemically developed, producing the first photograph.