Three major types of operation are performed to refine the oil into finished products: separation, conversion and treating.

Separation
In the first step, molecules are separated through atmospheric distillation (i.e. at normal atmospheric pressure), according to their molecular weight. During the process, which is also known as topping (refining), the oil is heated at the bottom of a 60-meter distillation column at a temperature of 350 to 400°C, causing it to vaporize. The vapors rise inside the column while the heaviest molecules, or residuals, remain at the bottom, without vaporizing. As the vapors rise, the molecules condense into liquids at different temperatures in the column. Only gases reach the top, where the temperature has dropped to 150°C. The liquids, which are become increasingly light the higher they are found in the column, are collected on trays located at different heights of the column. Each tray collects a different petroleum cut (fraction) , also known as a petroleum cut, with highly viscous preservation (hydrocarbons) like asphalt (bitumen) at the bottom and gases at the top.

The heavy residuals left over after atmospheric distillation still contain many products of medium density. The residuals are transferred to another column where they undergo a second distillation to recover middle distillates like heavy fuel oil and diesel.
Treating involves removing or significantly reducing molecules that are corrosive or cause air pollution, especially sulfur. European Union sulfur emission standards are very stringent. Since January 1, 2009, gasoline and diesel sold in Europe cannot contain more than 10 parts per million (ppm), or 10 milligrams per kilogram, of sulfur. The purpose of these measures is to improve air quality and optimize the effectiveness of catalytic converters used to treat exhaust gas. For diesel, desulfurization, or sulfur removal, is performed at 370°C, at a pressure of 60 bar. The hydrogen used in the process combines with the sulfur to form hydrogen sulfide (H2S), which is then treated to remove the sulfur, a substance used in industry.

Kerosene, butane and propane are washed in a caustic soda (sodium hydroxide) solution to remove thiols, also known as mercaptans. This process called sweetening.Treating Automotive Fuels
Automotive fuels must also be treated to increase their octane rating, which is a measure of a fuel’s resistance to detonation, based on a scale of 0 to 100. (Engine knocking occurs when the fuel in an internal combustion engine ignites spontaneously with no input from the spark plug.) If the octane rating isn’t high enough, the engine will eventually be irreversibly damaged. To avoid this, it is necessary to boost the octane rating to 95 or 98.

The process used to produce high-octane products is called catalytic reforming. The chemical reactions during catalytic reforming, which uses platinum as a catalyst, occur at 500°C and a pressure of 10 bar. They convert some of the naphthenic hydrocarbons (saturated cyclic hydrocarbons) into aromatic hydrocarbons (unsaturated cyclic hydrocarbons), which have a much higher octane rating. Other chemical reactions, such as alkylation, also improve the octane rating.

Refined Petroleum Products and Their Uses
Each refined petroleum product obtained from crude oil has a specific use:

Liquefied petroleum gas (LPG), also known as butane and propane, is used as an automotive fuel or packaged in bottles and used for household purposes.
Gasoline and diesel are used as fuels for motor vehicles.
Kerosene is used as jet fuel.
Naphtha is a major petrochemical feedstock.
Heating oil is used to heat buildings.
Base oils are used to make lubricants.
Asphalt, sometimes called bitumen, is used to pave roads.