Distillation is used to separate liquids from nonvolatile solids, Distillation is most effective in removing inorganic compounds hardness and particulates from a contaminated water supply. The boiling process also kills microorganisms such as bacteria and some viruses. Distillation removes oxygen and some trace metals from water.