Photography was invented by Frenchman Nicéphore Niépce in 1822. Niépce developed a technique called heliography, which he used to create the world's oldest surviving photograph, View from the Window at Le Gras (1827). Heliography was conceived in response to camera obscura theories dating back to ancient history.