 While semi-solid hydrocarbons from seeps were also burned in ancient times, they were mostly used for waterproofing and embalming.Commercial exploitation of petroleum began in the 19th century, largely to replace oils from animal sources (notably whale oil) for use in oil lamps.Natural gas, once flared-off as an unneeded byproduct of petroleum production, is now considered a very valuable resource.