Crude oil often contains water, inorganic salts, suspended solids, and water-soluble trace metals. As a first step in the refining process, to reduce corrosion, plugging, and fouling of equipment and to prevent poisoning the catalysts in processing units, these contaminants must be removed by desalting (dehydration).
The two most typical methods of crude-oil desalting, chemical and electrostatic separation, use hot water as the extraction agent. In chemical desalting, water and chemical surfactant (demulsifiers) are added to the crude, heated so that salts and other impurities dissolve into the water or attach to the water, and then held in a tank where they settle out. Electrical desalting is the application of high-voltage electrostatic charges to concentrate suspended water globules in the bottom of the settling tank. Surfactants are added only when the crude has a large amount of suspended solids. Both methods of desalting are continuous. A third and less-common process involves filtering heated crude using diatomaceous earth.