Petroleum refining refers to the process of converting crude oil into useful products. Crude oil is composed of hundreds of different hydrocarbon molecules, which are separated through the process of refining. The process is divided into three basic steps: separation, conversion, and treatment.