Distillation is a key separation process used in petroleum refining to separate crude oil into its various components like gasoline, kerosene, and diesel. Crude oil is first desalted and dewatered before being fed to a distillation unit where it is heated and separated based on differences in boiling points into various hydrocarbon fractions. Further refining processes like reforming, cracking, and hydrotreating are used to convert heavier fractions into lighter, more valuable products like gasoline.