To subject a substance to a process or to a chemical reagent to improve its quality or remove a contaminant.