In the 1830s, ketchup was sold as a patent medicine, under the name "Dr. Miles' Compound Extract of Tomato."