Demulsification is the breaking of a crude oil emulsion into oil and water phases. A fast rate of separation, a low value of residual water in the crude oil, and a low value of oil in the disposal water are obviously desirable. Produced oil generally has to meet company and pipeline specifications. For example, the oil shipped from wet-crude handling facilities must not contain more than 0.2% basic sediment and water (BS&W) and 10 pounds of salt per thousand barrels of crude oil. This standard depends on company and pipeline specifications. The salt is insoluble in oil and associated with residual water in the treated crude. Low BS&W and salt content is required to reduce corrosion and deposition of salts. The primary concern in refineries is to remove inorganic salts from the crude oil before they cause corrosion or other detrimental effects in refinery equipment. The salts are removed by washing or desalting the crude oil with relatively fresh water. This stability arises from the formation of interfacial films that encapsulate the water droplets. To separate this emulsion into oil and water, the interfacial film must be destroyed and the droplets made to coalesce.