Petroleum oil was first distilled by the Persian alchemist Muhammad ibn Zakarīya (Rhazes) in the 9th century, producing chemicals such as kerosene.