Until the early 20th century, arsenic was often used to embalm bodies. Eventually it was replaced by other chemicals that work better and are less poisonous. In 1867, the German chemist August Wilhelm von Hofmann discovered formaldehyde. Scientists soon realized that this chemical worked very well to preserve dead bodies. Soon formaldehyde replaced other chemicals as the most common chemical used to embalm bodies.