Oil played a major part during the industrialization of the United States. It was first used as lighting fuel, processes for oil refining were invented during the latter part of the 19th century. During most of the 19th century, the United States was the largest producer of oil in the world.